How to speeed up the query performance - Mailing list pgsql-sql

From Abdul Wahab Dahalan
Subject How to speeed up the query performance
Date
Msg-id 3F39AE9A.5020901@mimos.my
Whole thread Raw
Responses Re: How to speeed up the query performance
List pgsql-sql
How do I speed up the quey performance if I've a query like this :<br /> Does '<u><big>not in</big></u>' command will
affectedthe performance?.<br /><br /> select     
ts.transportid,ts.transporttype,ts.transportcapacity,ts.transportstatus,ts.routecoverage,ts.transportregnumber<br />
from      transportsetup ts<br /> where     ts.bizid = 'B126' <br /> and         ts.deletestatus = 0 <br /> and        
ts.transportid<u><big>not in</big></u> (    select t.transportid <br />                                                
 f rom transportsetup t,servicedetail s,logisticservice l <br />                                                  
wheret.bizid=l.bizid <br />                                                       and l.serviceid=s.serviceid <br />
                                                     and t.transportid=s.transportid <br />                            
                         and t.bizid = 'B126' <br />                                                       and
l.status='Pending'<br/>                                                   or t.bizid=l.bizid <br />                    
                                 and l.serviceid=s.serviceid <br />                                                    
 and t.transportid=s.transportid <br />                                                       and t.bizid = 'B126' and
l.status='Reserved') <br /> order by ts.transporttype;<br /><br /><br /> Any help pretty much appreciated. Thanks<br /> 

pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: How to optimize this query ?
Next
From: "SZŰCS Gábor"
Date:
Subject: Order of triggers - totally lost