| От | Pierre C |
|---|---|
| Тема | Re: Really really slow select count(*) |
| Дата | |
| Msg-id | op.vqhxafcueorkce@apollo13 обсуждение исходный текст |
| Ответ на | Re: Really really slow select count(*) (Scott Marlowe <scott.marlowe@gmail.com>) |
| Ответы |
Re: Really really slow select count(*)
Re: Really really slow select count(*) |
| Список | pgsql-performance |
>> I have clustered that table, its still unbelievably slow. > > Did you actually delete the old entries before clustering it? if it's > still got 4G of old sessions or whatever in it, clustering ain't gonna > help. Also, IMHO it is a lot better to store sessions in something like memcached, rather than imposing this rather large load on the main database... PS : if your site has been down for 6 hours, you can TRUNCATE your sessions table...
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера