Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improving sluggish SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Improving sluggish SQL
Divers
Thread ID:
00306158
Message ID:
00306158
Vues:
51
I have some very large tables from which I have to get records NOT IN other very large tables. Code like this:

select * from table1;
where keyfield NOT IN;
(select keyfield from table2)

is not optimizable, and is extremely slow (about 15 minutes or more) for each query. I have tried a SCAN/SEEK, but it is at least as slow or worse, since you're looking for unique keys that don't exist, and therefore must hit every record.

Any ideas for something faster?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform