ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / Types of HFSQL variables
  • Properties specific to hScheduledOptimization variables
  • Functions that use the hScheduledOptimization type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
hScheduledOptimization (Variable type)
In french: hOptimisationPlanifiée
HFSQL Client/ServerAvailable only with this kind of connection
The hScheduledOptimization type is used to programmatically manage a scheduled optimization task on an HFSQL server. A scheduled optimization task periodically performs statistical calculations or reindexes the data files on the HFSQL server.
The characteristics of this scheduled optimization task can be defined and modified using various WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see "Declaring a variable".
Example
// Recalculate the statistics for the files found in "MyDatabase" every Saturday at 23:00
Optim is hScheduledOptimization
Optim.Description = "Recalculating the statistics for the files found in the MyDatabase database"

Optim.Scheduling.Month = "*"
Optim.Scheduling.DayOfWeek = "Saturday"
Optim.Scheduling.Hour = "23"
Optim.Scheduling.Minute = "0"

Optim.File[1].Name = "MyDatabase"
Optim.File[1].Option = hOptStat

HAddScheduledOptimization(MyConnection, Optim)
Properties

Properties specific to hScheduledOptimization variables

The following properties can be used to handle hScheduledOptimization variables:
Property nameType usedEffect
DescriptionCharacter stringText describing the scheduling of the optimization.
The description of the optimization scheduling corresponds to an empty string ("") by default.
EnabledBoolean
  • True if the scheduling of the optimization is enabled,
  • False otherwise.
FileArray of hFileParameter variablesDescription of the files that must be taken into account during the optimization.
IdentifierIntegerIdentifier of the optimization task.
This property is read-only.
NumberExecutionIntegerNumber of times the task for optimization scheduling must be run. This property can also correspond to the Infinite constant.
SchedulinghScheduling variableCharacteristics of the scheduling.
UserCharacter stringUser who created the task for optimization scheduling.
This property is read-only.
Remarks

Functions that use the hScheduledOptimization type

The following functions can be used to handle hScheduledOptimization variables:
HAddScheduledOptimizationAdds an optimization task of HFSQL Client/Server data files.
HAddSchedulingAdds a new scheduled item to an HFSQL server: scheduled task (stored procedure), backup, optimization or refresh of a materialized view.
HDeleteSchedulingDelete a scheduled item on an HFSQL server: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.
HExecuteSchedulingImmediately executes a scheduled item regardless of its scheduling: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.
New in version 2025
HListHistoryPlanning
Lists the execution history of a scheduled item on an HFSQL server: scheduled task (stored procedure), backup, optimization, refresh of a materialized view).
HModifyScheduledOptimizationModifies a scheduled optimization task on the HFSQL server defined by the connection.
HModifySchedulingModify a scheduled item on an HFSQL server: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.
New in version 2025
HSuppressHistoryPlanning
Deletes the execution history of a scheduled item on an HFSQL server: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.).
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/18/2024

Send a report | Local help