pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dennis Sacks <dennis@illusions.com>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: same question little different test MSSQL vrs Postgres
Date: Tue, 25 Jan 2005 21:21:08 -0700
Message-ID: <41F71AB4.5030208@illusions.com> (raw)
In-Reply-To: <000901c5035a$3b619cc0$797ba8c0@jfradkin>
References: <000901c5035a$3b619cc0$797ba8c0@jfradkin>

Joel Fradkin wrote:

> I also tried a simple select * from tblcase where clientum = 'SAKS'
>
> On both MSSQL and Postgres.
>
> MSSQL was 3 secs, Postgres was 27 secs.
>
>  
>
> There is a key for clientnum, but it appeared on both systems 
> (identical Dell Desktops Postgres is running Linux MSSQL is XP) it did 
> not do a indexed search.
>

One of the things you'll want to do regularly is run a "vacuum analyze". 
You can read up on this in the postgresql docs. This is essential to the 
indexes being used properly. At a bare minimum, after you import a large 
amount of data, you'll want to run vacuum analyze.

Dennis Sacks
dennis@illusions.com

view thread (19+ messages)  latest in thread

Message-ID: <41F71AB4.5030208@illusions.com>
Permalink:  ../41F71AB4.5030208@illusions.com/
Also on:    postgresql.org/message-id/41F71AB4.5030208@illusions.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dennis@illusions.com, jfradkin@wazagua.com
  Subject: Re: same question little different test MSSQL vrs Postgres
  In-Reply-To: <41F71AB4.5030208@illusions.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox