PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Differences between HOptimize and HOptimizeQuery
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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).
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
HOptimize(Customer, Name)
Syntax
<Result> = HOptimize([<File Name> [, <Name of Key Item>]])
<Result>: Boolean
  • True if the file was optimized,
  • False if a problem occurred. HErrorInfo returns more details.
<File Name>: Optional character string (with or without quotes)
Name of the HFSQL Classic data file used. If this parameter is not specified, HOptimize handles the last data file used by the last function for HFSQL management (starting with the letter H).
<Name of Key Item>: Optional character string (with or without quotes)
Name of the key item to optimize. If this parameter is not specified, HOptimize optimizes all the keys found 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 saturation, HOptimize should not be called on an important number of data files or key items.
  • HOptimizeQuery loads the system caches with the index sections required by the specified query, for all the data files used by the query. This function is used to optimize the queries.

Various

  • HOptimize immediately gives control back to the program and it is run in background task.
  • HOptimize has no effect on the non-key items or on the data files that are not in HFSQL Classic format.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment