Post B6nloFf7myGUDNRHLk by natty@astolfo.social
(DIR) More posts by natty@astolfo.social
(DIR) Post #B6nloFMgtVWHICoYcK by kopper@not-brain.d.on-t.work
0 likes, 0 repeats
is there any existing knowledge around caching response "fragments" individually or Just Joining All The Tables? all the search engines suck nowlike, if i'm displaying a list of Posts in a web api, wouldnt it make more sense to render a Post once and cache the rendered JSON? the tradeoff here is that you can't Just Join the "whatever_list" table to the "posts" table (and to the "users" table, because your user data would also be cached in this way)of course you'd still batch the queries to avoid n+1
(DIR) Post #B6nloFf7myGUDNRHLk by natty@astolfo.social
0 likes, 0 repeats
@kopper@not-brain.d.on-t.work isn't this just the two extremesDon't know the context tho