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 > SQL quiries are too slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-02, 06:56
iahmad iahmad is offline
Registered User
 
Join Date: Sep 2002
Location: Pakistan
Posts: 17
Red face SQL quiries are too slow

Hello all,

I have some quiries with joins of different tables and at the end order by statement. These quiries take very longer time from 7 Min to more.
The Records in the datatbase are more than half million
When ever I remove the order by clause the the quiries pull out with in seconds.

Please help me out of this problem.
Thanks in advance
__________________
Istikhar Ahmad
------------------
Tel: (92-42) 111000911
iahmad@i2cinc.com
http://www.i2cinc.com
Reply With Quote
  #2 (permalink)  
Old 09-23-02, 12:09
gab66 gab66 is offline
Registered User
 
Join Date: Sep 2002
Posts: 2
Re: SQL quiries are too slow

Run with set explain on and see what goes there !

For optimize if the query return many records try to to

select ... into temp temptable
create index on temptable
select * from tenptable

Hope that help you
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