N
N
NetyNicka2015-04-28 15:47:37
PHP
NetyNicka, 2015-04-28 15:47:37

What is the best way to cache postgresql data?

Good day!
A database is given in which static content is located, which must be given to each user who logged into the account.
The question is how to ensure the maximum speed and availability of this data? Does it make sense to use Redis as a layer, or is psql enough?
The main goal: the fastest possible reading of the same data for many users.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evnuh, 2015-04-28
@NetyNicka

If the data is read frequently, then it will definitely be in the postgres buffer. If you have static content that you simply fetch by key, then there will be almost no difference with Redis, the connection takes longer than the data fetch.

F
FanatPHP, 2015-04-29
@FanatPHP

For novice programmers, caching is a kind of fetish. And they try to shove it anywhere, for no reason at all. Or rather, the reason is their own fears generated by ignorance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question