Re: High update activity, PostgreSQL vs BigDBMS

Поиск
Список
Период
Сортировка
Искать
От
Adam Rich
Тема
Re: High update activity, PostgreSQL vs BigDBMS
Дата
Msg-id
022d01c732cc$69f0e2a0$6400a8c0@dualcore
Ответ на
Список
Дерево обсуждения
High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS Dave Cramer <pg@fastcrypt.com>
Re: High update activity, PostgreSQL vs BigDBMS "Alex Turner" <armtuk@gmail.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS "Shoaib Mir" <shoaibmir@gmail.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS "Craig A. James" <cjames@modgraph-usa.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS "Craig A. James" <cjames@modgraph-usa.com>
Re: High update activity, PostgreSQL vs BigDBMS Bruce Momjian <bruce@momjian.us>
Re: High update activity, PostgreSQL vs BigDBMS "Craig A. James" <cjames@modgraph-usa.com>
Re: High update activity, PostgreSQL vs BigDBMS "Adam Rich" <adam.r@sbcglobal.net>
Re: High update activity, PostgreSQL vs BigDBMS "Joshua D. Drake" <jd@commandprompt.com>
Re: High update activity, PostgreSQL vs BigDBMS "Adam Rich" <adam.r@sbcglobal.net>
Re: High update activity, PostgreSQL vs BigDBMS Tom Lane <tgl@sss.pgh.pa.us>
Re: High update activity, PostgreSQL vs BigDBMS "Adam Rich" <adam.r@sbcglobal.net>
Re: High update activity, PostgreSQL vs BigDBMS Shane Ambler <pgsql@007Marketing.com>
Re: High update activity, PostgreSQL vs BigDBMS Dave Cramer <pg@fastcrypt.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS "Joshua D. Drake" <jd@commandprompt.com>
Re: High update activity, PostgreSQL vs BigDBMS Dave Cramer <pg@fastcrypt.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS "Jim C. Nasby" <jim@nasby.net>
Re: High update activity, PostgreSQL vs BigDBMS Tom Lane <tgl@sss.pgh.pa.us>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>
Re: High update activity, PostgreSQL vs BigDBMS Ron <rjpeace@earthlink.net>
Re: High update activity, PostgreSQL vs BigDBMS Jeff Davis <pgsql@j-davis.com>
Re: High update activity, PostgreSQL vs BigDBMS Alvaro Herrera <alvherre@commandprompt.com>
Re: High update activity, PostgreSQL vs BigDBMS Geoffrey <esoteric@3times25.net>
Re: High update activity, PostgreSQL vs BigDBMS Ragnar <gnari@hive.is>
Re: High update activity, PostgreSQL vs BigDBMS Lars Heidieker <lars@heidieker.de>
Re: High update activity, PostgreSQL vs BigDBMS "Jeremy Haile" <jhaile@fastmail.fm>
Re: High update activity, PostgreSQL vs BigDBMS Jeff Frost <jeff@frostconsultingllc.com>
Re: High update activity, PostgreSQL vs BigDBMS "Jim C. Nasby" <jim@nasby.net>
Re: High update activity, PostgreSQL vs BigDBMS Jeff Frost <jeff@frostconsultingllc.com>
Re: High update activity, PostgreSQL vs BigDBMS "Jim C. Nasby" <jim@nasby.net>
Re: High update activity, PostgreSQL vs BigDBMS Jeff Frost <jeff@frostconsultingllc.com>
Re: High update activity, PostgreSQL vs BigDBMS Arnau <arnaulist@andromeiberica.com>
Re: High update activity, PostgreSQL vs BigDBMS Guy Rouillier <guyr-ml1@burntmail.com>

I'm using 8.2 and using order by & limit is still faster than MAX()
even though MAX() now seems to rewrite to an almost identical plan
internally.

Count(*) still seems to use a full table scan rather than an index scan.

Using one of our tables, MySQL/Oracle/MS-SQL all return instantly while
PG takes longer ther 700ms.  Luckily we can design around this issue.


-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Craig A.
James
Sent: Sunday, January 07, 2007 5:57 PM
To: Guy Rouillier; PostgreSQL Performance
Subject: Re: [PERFORM] High update activity, PostgreSQL vs BigDBMS


Craig A. James wrote:
> The "idiom" to replace count() was 
> "select col from tbl order by col desc limit 1".  It worked miracles
for 
> my app.

Sorry, I meant to write, "the idiom to replace MAX()", not count()...
MAX() was the function that was killing me, 'tho count() also gave me
problems.

Craig

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

В списке pgsql-performance по дате отправления
От: Craig A. James
Дата:
От: Tom Lane
Дата:
FAQ