Re: Performance of count(*) on large tables vs SQL Server

From: PFC <lists(at)boutiquenumerique(dot)com>
To: "Andrew Mayo" <ajmayo(at)kohuconsulting(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance of count(*) on large tables vs SQL Server
Date: 2005-02-01 13:36:30
Message-ID: opslite4tuth1vuj@musicbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> clause will be a cheap query - and use it to test if
> a table is empty, for instance. (because for
> Oracle/Sybase/SQL Server, count(*) is cheap).

To test if a table is empty, use a SELECT EXISTS or whatever SELECT with
a LIMIT 1...

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Turner 2005-02-01 13:58:34 Re: High end server and storage for a PostgreSQL OLTP system
Previous Message Stef 2005-02-01 13:22:50 Re: Performance of count(*) on large tables vs SQL Server