Re: [HACKERS] All things equal, we are still alot slower then MySQL?

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [HACKERS] All things equal, we are still alot slower then MySQL?
Дата
Msg-id 37E4FC3E.29CA62E8@alumni.caltech.edu
обсуждение исходный текст
Ответ на All things equal, we are still alot slower then MySQL?  (The Hermit Hacker <scrappy@hub.org>)
Ответы Re: [HACKERS] All things equal, we are still alot slower then MySQL?  (The Hermit Hacker <scrappy@hub.org>)
Re: [HACKERS] All things equal, we are still alot slower then MySQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Using the exact same data, and the exact same queries (dbi is cool):
> MySQL: 0.498u 0.150s 0:02.50 25.6%     10+1652k 0+0io 0pf+0w
> PgSQL: 0.494u 0.061s 0:19.78 2.7%      10+1532k 0+0io 0pf+0w
> >From the 'time' numbers, MySQL is running ~17sec faster, but uses up 23%
> more CPU to do this...so where is our slowdown?

I don't remember if you gave details on the sizes of tables, but in
any case I'm going to guess that you are spending almost all of your
time in the optimizer. Try manipulating the parameters to force the
genetic optimizer and see if it helps. Lots of quals but only two
tables gives you a non-optimal case for the default exhaustive
optimizer.
                   - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: [INTERFACES] PERL
Следующее
От: Thomas Lockhart
Дата:
Сообщение: INSERT/DEFAULT VALUES broken?