| От | Josh Berkus |
|---|---|
| Тема | Re: [GENERAL] Upgrade to dual processor machine? |
| Дата | |
| Msg-id | 200211151055.11245.josh@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: [GENERAL] Upgrade to dual processor machine? ("Henrik Steffen" <steffen@city-map.de>) |
| Список | pgsql-performance |
Henrik, > > Well, now it gets more complicated. You need to determine: > > A) The median processing time of each of those requests. > > B) The amount of Sort_mem actually required for each request. > > as I am dealing with postgres for a webserver the median processing > time of each request has got to be <1 sec. how can i measure > the amount of sort_mem needed? Through experimentation, mostly. SInce you are in a high-volume, small-query environment, I would try *lowering* your sort mem to see if that has an adverse impact on queries. A good quick test would be to cut your sort_mem in half, and then run an EXPLAIN on the query from which you expect the largest result set, and see if the SORT time on the query has been increased. -- -Josh Berkus Aglio Database Solutions San Francisco
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера