Hacker News new | ask | show | jobs
by killerstorm 1181 days ago
> For caching the query results you get from your database.

This only makes sense if queries are computationally intensive. If you're fetching a single row by index you aren't winning much (or anything).

2 comments

Of course? I'm not really sure what the original question actually is if you know that users benefit from caching the results of computationally intensive queries.
OpenAI uses redis to store pieces of text. Fetching pieces of text is not computationally intensive.
Most likely they have them in an rdbms, so it's more like joining a forum thread together. Not expensive, but why not prebuild and store it instead?
> This only makes sense if queries are computationally intensive.

Or if the link to your DB is higher latency than you're comfortable with.