Unix Technical Forum

same question little different test MSSQL vrs Postgres

This is a discussion on same question little different test MSSQL vrs Postgres within the pgsql Sql forums, part of the PostgreSQL category; --> I also tried a simple select * from tblcase where clientum = 'SAKS' On both MSSQL and Postgres. MSSQL ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:53 AM
Joel Fradkin
 
Posts: n/a
Default same question little different test MSSQL vrs Postgres

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.



Joel Fradkin



Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305



jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.









Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:53 AM
Greg Stark
 
Posts: n/a
Default Re: same question little different test MSSQL vrs Postgres


"Joel Fradkin" <jfradkin@wazagua.com> writes:

> I also tried a simple select * from tblcase where clientum = 'SAKS'


Try:

explain analyze select * from tblcase where clientum = 'SAKS'

Send the output.

--
greg


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 10:53 AM
Bruno Wolff III
 
Posts: n/a
Default Re: same question little different test MSSQL vrs Postgres

On Tue, Jan 25, 2005 at 21:21:08 -0700,
Dennis Sacks <dennis@illusions.com> wrote:
>
> 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.


Note that there is no need to vacuum after inserts (only updates and deletes),
so you can just do an analyze in that case.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 10:53 AM
Dennis Sacks
 
Posts: n/a
Default Re: same question little different test MSSQL vrs Postgres

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 10:53 AM
Dennis Sacks
 
Posts: n/a
Default Re: same question little different test MSSQL vrs Postgres

Bruno Wolff III wrote:

>On Tue, Jan 25, 2005 at 21:21:08 -0700,
> Dennis Sacks <dennis@illusions.com> wrote:
>
>
>>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.
>>
>>

>
>Note that there is no need to vacuum after inserts (only updates and deletes),
>so you can just do an analyze in that case.
>
>

Good point! Analyze after bulk inserts, vacuum analyze after
updates/deletes and inserts.

Dennis Sacks

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 10:53 AM
Joel Fradkin
 
Posts: n/a
Default Re: same question little different test MSSQL vrs Postgres

QUERY PLAN
"Seq Scan on tblcase (cost=0.00..30066.21 rows=37401 width=996) (actual
time=0.344..962.260 rows=22636 loops=1)"
" Filter: ((clientnum)::text = 'SAKS'::text)"
"Total runtime: 1034.434 ms"

Joel Fradkin

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305

jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.




-----Original Message-----
From: gsstark@mit.edu [mailto:gsstark@mit.edu]
Sent: Wednesday, January 26, 2005 1:27 AM
To: Joel Fradkin
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] same question little different test MSSQL vrs Postgres


"Joel Fradkin" <jfradkin@wazagua.com> writes:

> I also tried a simple select * from tblcase where clientum = 'SAKS'


Try:

explain analyze select * from tblcase where clientum = 'SAKS'

Send the output.

--
greg


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com