Re: How to keep queries low latency as concurrency increases

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: How to keep queries low latency as concurrency increases
Дата
Msg-id 50B31E59.9050004@vmware.com
обсуждение исходный текст
Ответ на Re: How to keep queries low latency as concurrency increases  (Catalin Iacob <iacobcatalin@gmail.com>)
Ответы Re: How to keep queries low latency as concurrency increases  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-performance
On 25.11.2012 18:30, Catalin Iacob wrote:
> So it seems we're just doing too many connections and too many
> queries. Each page view from a user translates to multiple requests to
> the application server and each of those translates to a connection
> and at least a few queries (which are done in middleware and therefore
> happen for each and every query). One pgbouncer can handle lots of
> concurrent idle connections and lots of queries/second but our 9000
> queries/second to seem push it too much. The longer term solution for
> us would probably be to do less connections (by doing less Django
> requests for a page) and less queries, before our deadline we were
> just searching for a short term solution to handle an expected traffic
> spike.

The typical solution to that is caching, see
https://docs.djangoproject.com/en/1.4/topics/cache/.

- Heikki


В списке pgsql-performance по дате отправления:

Предыдущее
От: Catalin Iacob
Дата:
Сообщение: Re: How to keep queries low latency as concurrency increases
Следующее
От: "Syed Asif Tanveer"
Дата:
Сообщение: Postgres configuration for 8 CPUs, 6 GB RAM