Re: How Postgresql Compares For Query And Load Operations

Поиск
Список
Период
Сортировка
От Sean Chittenden
Тема Re: How Postgresql Compares For Query And Load Operations
Дата
Msg-id 20010721115944.T5160@rand.tgd.net
обсуждение исходный текст
Ответ на Re: How Postgresql Compares For Query And Load Operations  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: How Postgresql Compares For Query And Load Operations  (Shaun Thomas <sthomas@townnews.com>)
Список pgsql-general
> > I thought it was worth trying a different query as well :
> >
> > SELECT count(*) FROM fact0
> >
> > DB        Elapsed        Cpu
> > Postgres    1m5s        32s
> > Db2        23s        15s
> > Oracle        37s        11s

    This may be an Oracle DBA myth, but I was told by my ORA DBA
that it should be "SELECT count(1) FROM fact0" and not count(*).  For
some reason it was thought that count(1) would run faster, but I can't
confirm or deny this.  Does this make a difference in the benchmark?
-sc

--
Sean Chittenden

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: How Postgresql Compares For Query And Load Operations
Следующее
От: Jeremy Hansen
Дата:
Сообщение: foreign keys?