Re: Slow query performance
От | Scott Marlowe |
---|---|
Тема | Re: Slow query performance |
Дата | |
Msg-id | dcc563d10810291518g4f3064ffobc491f12beb71a8c@mail.gmail.com обсуждение исходный текст |
Ответ на | Slow query performance ("Kevin Galligan" <kgalligan@gmail.com>) |
Ответы |
Re: Slow query performance
|
Список | pgsql-general |
On Wed, Oct 29, 2008 at 2:18 PM, Kevin Galligan <kgalligan@gmail.com> wrote: > I'm approaching the end of my rope here. I have a large database. > 250 million rows (ish). Each row has potentially about 500 pieces of > data, although most of the columns are sparsely populated. A couple of notes here. PostgreSQL stores null values as a single bit in a bit field, making sparsely populated tables quite efficient as long as you store the non-existent values as null and not '' or some other real value. Have you run explain analyze on your queries yet? Pick a slow one, run explain analyze on it and post it and we'll see what we can do.
В списке pgsql-general по дате отправления: