|
|
|
|
|
- Differences between HOptimize and HOptimizeQuery
- Miscellaneous
HOptimize (Function) In french: HOptimize
Available only with this kind of connection
Allows you to handle the idle periods of a software (period without processes) to optimize the queries and the browses that will be run thereafter. Optimizes the access to the indexes of HFSQL Classic data files (the indexes of HFSQL Client/Server data files cannot be optimized). HOptimize(Customer, Name)
Syntax
<Result> = HOptimize([<Data file> [, <Key item>]])
<Result>: Boolean - True if the file was optimized,
- False if a problem occurs. HErrorInfo returns more details.
<Data file>: Optional character string Name of the HFSQL Classic data file used. If this parameter is not specified, HOptimize will use the last data file used by the last HFSQL management function (function starting with "H"). <Key item>: Optional character string Name of the key item to optimize. If this parameter is not specified, HOptimize optimizes all the keys in the data file. Remarks Differences between HOptimize and HOptimizeQuery - HOptimize loads the system caches with the entire index of the data file. There is a risk of overloading the system caches if the data file is very large or if the application uses several large data files.
To avoid the risk of overload, avoid calling HOptimize on a large number of data files or key items. - HOptimizeQuery loads the system caches with only the index parts needed for the specified query (for all the data files used by the query). This function is used to optimize the queries.
Miscellaneous - HOptimize immediately gives control back to the program and is run in the background.
- HOptimize has no effect on non-key items or on data files that are not in HFSQL Classic format.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|