Re: Simple select hangs while CPU close to 100% - Analyze
В списке pgsql-performance по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Simple select hangs while CPU close to 100% - Analyze |
| Дата | |
| Msg-id | 20070818030349.GC13349@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: Simple select hangs while CPU close to 100% - Analyze ("Jozsef Szalay" <jszalay@storediq.com>) |
| Список | pgsql-performance |
Jozsef Szalay escribió: > I don't know why ANALYZE would have any effect on a sequential scan of a > table but it does appear to impact both performance and memory usage > significantly. It doesn't. What it does is provide the query optimizer with the information that it needs to know that the table contains many different values, which makes it turn the initial hashed aggregation into a sort plus group aggregation. This allows the aggregation to use less memory. As an exercise, see an EXPLAIN of the query, both before and after the analyze, and study the difference. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера