PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 25th, 2013, 09:18 AM
rmd22 rmd22 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 4 rmd22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 34 m 21 sec
Reputation Power: 0
How to improve postgres performance?

HI,
I have been trying to run BenchmarkSQL-2.3 with mysql and postgres servers and while doing that I have found out that postgres queries take much more time to execute than that of mysql. I tried tuning postgres by turning off the fsync, increasing the shared memory and effective cache size etc. but still postgresql's performance was quite low in comparison to mysql. So as a small test I ran a simple query like "SELECT * from order_line" multiple times on both the databases and noted down the query execution times. The table order_line has 900000 lines, for mysql the average time over 20 runs of this query was about 4.9 seconds and for postgresql-9.2 about 13 seconds. The difference seems quite a lot to me. Is there a way to speed up the execution on postgres. table shema is as follows,
create table order_line (
ol_w_id integer not null,
ol_d_id integer not null,
ol_o_id integer not null,
ol_number integer not null,
ol_i_id integer not null,
ol_delivery_d timestamp,
ol_amount decimal(6,2),
ol_supply_w_id integer,
ol_quantity decimal(2,0),
ol_dist_info char(24)
);

primary key (ol_w_id, ol_d_id, ol_o_id, ol_number);

Also, there are no indexes used here.
if anyone has any ideas please share. thanks in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > How to improve postgres performance?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap