4D v14.3SET INDEX |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SET INDEX
SET INDEX
Compatibility note: This command is kept only for compatibility reasons. We now recommend using the CREATE INDEX and DELETE INDEX commands to manage indexes through programming. The SET INDEX accepts two syntaxes:
index = Boolean index = Integer
Note: A B-Tree index associated with a Text type field stores the first 1024 characters of the field (maximum). Therefore in this context, searches for strings containing more than 1024 characters will fail. SET INDEX will not index locked records; it will wait until the record becomes unlocked. Starting with version 11, the mode parameter no longer serves any purpose and will be ignored if it is passed. The optional * parameter indicates an asynchronous (simultaneous) indexing. Asynchronous indexing allows the execution of the calling method to continue immediately, whether or not indexing is completed. However, execution will halt at any command that requires the index. Notes:
The following example indexes the field [Customers]ID: UNLOAD RECORD([Customers]) You want to index the [Customers]Name field in asynchronous mode: SET INDEX([Customers]Name;True;*) Creation of a keywords index: SET INDEX([Books]Summary;Keywords Index) |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v11 SQL SEE ALSO
CREATE INDEX ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) Parent of : SET INDEX ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||