Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query takes 5 minutes, is this normal?
Message
From
12/04/2007 14:08:08
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 5
Miscellaneous
Thread ID:
01214872
Message ID:
01215130
Views:
14
Wow. Add me to the list of admirers. Your website is really amazing. How do you find time (on top of the online support you generously give)? Are there more than one of you? Thank you! :o)



>How many records this query returns? You can find explanation why it's much faster when run intio cursor at http://www.berezniker.com/display/VFP/Queries+and+Filtered+Cursors
>
>>
>>I have the following query which takes 5 minutes. I'm wondering if this is normal?
>>
>>Select *;
>>from mutbdrg;
>>where year(dat_verw) = 2007 and year(dati_vrsch)=2007;
>>into table curMutatiePolis
>>
>>
>>I have an index on year(dat_verw) and an index on year(dati_vrsch). The table mutbdrg is 8.5 millions big. Strange thing is if I do the query in the command window w/o an output to a table it takes 2 seconds.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform