Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore not optimizing
Message
De
06/12/2012 06:37:21
 
 
À
04/12/2012 14:03:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01558688
Message ID:
01558913
Vues:
53
J'aime (1)
>>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.

You should take note that Set Enginebehavior to a lower value may result in wrong data. That's why Set Enginebehavior was added, use it as "band aid", not as a permanent fix.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform