Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query- It is fast , and then slow
Message
From
13/02/2001 08:54:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Query- It is fast , and then slow
Miscellaneous
Thread ID:
00475223
Message ID:
00475223
Views:
70
Hi,
I have a query as the following:
SELECT m.Card_No, m.E_Name, m.Off_Code ;
FROM Member m ; 
WHERE m.Card_No NOT IN ;
	(SELECT Card_No ;
	FROM (lcRedeem) WHERE Redeem_Set_No = lcSetNo) ;
GROUP BY m.Card_No INTO CURSOR csrSummary
It is not optimized since that is a NOT condition. When I run it from my application, I work fast when I run it for the 1st time! It returns 5000 records within 3 seconds through LAN. However, it becomes slow for the second time. It take 10 seconds to query.

Any ideas?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform