Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting X TOP records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00950435
Message ID:
00950487
Vues:
11
>
>... The query takes considerable time...
>

I recently had the same problem. In my case there were memo fields in a larger table and the query took too long. The memo-Fields where not part of the "order by" or any filter-Options, just cargo. I ended up splitting the query into two queries which speeded up the whole thing a lot.
select TOP 10 ID ;
   from XY ;
    where ...
    order by;
     into cursor JUNK

select A.* from XY A inner join JUNK B;
  on A.ID = B.ID;
   into cursor RESULT
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform