General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Network:
Windows 2003 Server
>>If I want to select N top records, does VFP still create a whole resultset in memory?
>
>Before VFP9, yes. In VFP9, it depends. From VFP9 help:
>
>"In Visual FoxPro 9.0, performance has been improved by eliminating records that do not qualify for the TOP N from the sort process as early as possible.
>
>The TOP N optimization is done only if the SET ENGINEBEHAVIOR Command is set to 90".
Thanks. I don't see any difference in execution speed. I'm using SET ENGINEBEHAVIOR 90.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only