Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore not optimizing
Message
From
04/12/2012 14:03:57
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01558688
Message ID:
01558690
Views:
69
>From help;
>
>Rushmore Optimization and Code Pages
>
>Visual FoxPro does not use existing character indexes for tables created with a non-current code page. Instead, Visual
>FoxPro builds temporary indexes to ensure correct results. This can result in non-optimization of SQL or other commands. 
>To prevent this, ensure that the current Visual FoxPro code page returned by CPCURRENT( ) Function matches the table's 
>code page returned by CPDBF( ) Function. This requires either changing the current Visual FoxPro code page, or changing 
>the table's code page. For information about specifying the current Visual FoxPro code page, see Understanding Code 
>Pages in Visual FoxPro. For information about specifying the code page for a table, see How to: Specify the Code Page of 
>a .dbf File. If you cannot change either the Visual FoxPro codepage or the table codepage to match, you can force 
>optimization to work as it did in Visual FoxPro 8 and prior versions using the SET ENGINEBEHAVIOR Command with either 80 
>or 70 as a parameter.
>
Fantastic, thank you! Didn't look at codepage and fix it yet, but SET ENGINE made it fly. Even a simple LOCATE statement would take forever on this table.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform