- Use conditions
- Automatic reindexing
- "Zero-downtime" reindexing
- Calculating statistics
- Directory of temporary files
- Managing non-Latin character sets
- Access rights to the data file
- Special case: Files corrupted after a computer reboot or a fatal error
<Source>.Index (Function) In french: <Source>.Réindexe
 Available only with these kinds of connection
IF AFile.Index(hNdxNormal) = True THEN TABLE_MyTable.Display(taStart) END
Syntax
<Result> = <Source>.Index([<Mode> [, <Progress Bar> [, <Density rate>]]])
<Result>: Boolean - True if the reindex operation was successfully performed,
- False otherwise. HError returns more details about the problem.
<Source>: Type corresponding to the specified source Name of data file used. <Mode>: Optional Integer constant (or combination of constants) Configure the reindex operation: <Progress Bar>: Optional control or window name or optional integer - Name of window where the progress bar will be displayed,
- Name of the Progress Bar control that displays the reindexing progress,
- Identifier (Handle) of window that displays the progress bar.
<Density rate>: Integer included between 1 and 100 Density rate of indexes. This rate is set to 60 by default. Remarks Use conditions - <Source>.Index is used to reindex an xBase file.
Versions 21 and later<Source>.Index is used to reindex files in a cluster. In this case: - The reindex operation is performed on the node to which the user is connected.
- Only a zero-downtime reindexing is available (hBackgroundTask constant).
New in version 21<Source>.Index is used to reindex files in a cluster. In this case: - The reindex operation is performed on the node to which the user is connected.
- Only a zero-downtime reindexing is available (hBackgroundTask constant).
<Source>.Index is used to reindex files in a cluster. In this case: - The reindex operation is performed on the node to which the user is connected.
- Only a zero-downtime reindexing is available (hBackgroundTask constant).
Calculating statistics The statistical calculations are used to optimized the queries and the filters on the data file. The statistical calculations can also be performed by <Source>.StatCalculate. Remark: In order for the statistical calculation to be efficient, this calculation must be performed on all the data files (for a multi-file query for example). Directory of temporary files Temporary files can be created during the reindex operation. By default, these files are created in the Windows temporary directory or in the current directory if there is not enough space. The H.TemporaryDirectory variable allows you to configure the directory used to save these temporary files. This variable is recommended when reindexing huge data files.
Versions 17 and later New in version 17Access rights to the data file The reindex operation provokes the re-creation of the data file on disk. In an allocation system managing the rights at file level (NTFS...), the data file after the reindex operation will have the rights of the directory to which it belongs. Before the reindex operation, if the data file had specific rights different from the rights of the folder, they must be redefined in Windows after the reindex operation. Special case: Files corrupted after a computer reboot or a fatal error The data files may be corrupted when the computer is unexpectedly rebooted. In this case, the data files contain invalid data (unreadable characters for example). To fix this problem: - Perform a reindexing with deletion.
- Free the records in transaction with <Source>.TransactionFree.
- Delete the incorrect records with WDMAP.
This page is also available for…
|
|
|