V
V
Valentine2016-08-19 09:41:36
PostgreSQL
Valentine, 2016-08-19 09:41:36

How to optimize query to Postgresql?

There is a site with django+uwsgi+nginx+posgresql. There is one big request that takes a decent amount of time. Apparently django aggregates all view and template display into one request.
The query result is almost always the same (it changes when a comment appears - once a day). How can you optimize query processing time? Is there any caching by means of posgresql?
Plannin time: 1.011 ms
Execution time: 785.911 ms

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2016-08-19
@nazarpc

Do you have no caching at all or what? Throw in any cache the result of a request for a day, business.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question