Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] "not in" clause too slow?

From: Ottavio Campana <ottavio(at)campana.vi.it>
Date: Tue Sep 25 2007 - 04:47:16 EDT


Alban Hertroys ha scritto:
> Ottavio Campana wrote:

>> 2) how can I speed it up? by using indexes? or by changing the query?

>
> Do you have indices on mytable.id and copy_mytable.id?
> Does using NOT EXISTS get you any better results?

Eventually I had to select not all the table fields but only the primary key and successively loop on the table again. Thus I've been able to exploit the indexes.

Received on Tue Sep 25 04:50:18 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 11:50:47 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library