Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting X TOP records
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00950435
Message ID:
00950487
Views:
10
>
>... 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform