Re: Why should such a simple query over indexed columns be so slow?
От | Claudio Freire |
---|---|
Тема | Re: Why should such a simple query over indexed columns be so slow? |
Дата | |
Msg-id | CAGTBQpYkABcva8=PzXyzRFqxMKjsXhXfZT-k2tsLh61h-aLsAw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Why should such a simple query over indexed columns be so slow? (Alessandro Gagliardi <alessandro@path.com>) |
Ответы |
Re: Why should such a simple query over indexed columns be
so slow?
|
Список | pgsql-performance |
On Mon, Jan 30, 2012 at 5:35 PM, Alessandro Gagliardi <alessandro@path.com> wrote: > To answer your (non-)question about Heroku, it's a cloud service, so I don't > host PostgreSQL myself. I'm not sure how much I can mess with things like > GUC since I don't even have access to the "postgres" database on the server. > I am a long time SQL user but new to Postgres so I welcome suggestions on > where to start with that sort of thing. Setting enable_seqscan=false made a > huge difference, so I think I'll start there. It's not a good idea to abuse of the enable_stuff settings, they're for debugging, not for general use. In particular, disable sequential scans everywhere can have a disastrous effect on performance. It sounds as if PG had a misconfigured effective_cache_size. What does "show effective_cache_size" tell you?
В списке pgsql-performance по дате отправления: