If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Slow Inserts and Queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-10, 12:13
siskel siskel is offline
Registered User
 
Join Date: Sep 2010
Posts: 1
Slow Inserts and Queries

Hello,

I have a program made in C running on a SCO Openserver 5 which reads from file registries and the checks the database 11 if the querie exist it updates it if it doesn't it inserts it.

My problem is that in SCO the program takes about 3 hours, yet in solaris the same program takes about 5 hours, being solaris a better server when it come to resources.

What i noticed is that aparently the queries seem slower in the solaris version.

I would like to know if anyone has done something similar and can help me out to improve the performance since i need to migrate that process to the solaris server, but we can't afford doubling the times.
Reply With Quote
  #2 (permalink)  
Old 09-07-10, 09:22
bigcalm bigcalm is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
There's a lot of things this might be. First, try the obvious...

* "update statistics medium" for all databases.

If this has no effect on performance, try running some of the sqls in dbaccess, with "set explain on;" beforehand - output goes to a file called sqexplain.out - and should hopefully give you hints as to which queries are slow (anything that is "SEQUENTIAL SCAN" is bad - might hint at a missing index).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On