Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COUNT taking too long on network
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00172498
Message ID:
00172502
Views:
34
It's been my experience that any count statement that uses a filter on a larges networked table take a long time.

Instead of using a filter and count statements, us a single SQL statement to return the count.

Something like:

SELECT COUNT(id) AS idCount;
FROM tableName;
WHERE id = "123";
AND whatever your filter statement is;
INTO CURSOR countTemp

*-- Display the resulting count
?countTemp.idCount


Hope this helps,

Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform