This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
ADJUST INDEX CACHE PRIORITY

ADJUST INDEX CACHE PRIORITY 


 

ADJUST INDEX CACHE PRIORITY ( aField ; priority ) 
Parameter Type   Description
aField  Field in Field whose index(es) priority value has to be adjusted
priority  Longint in Cache priority value for the field index(es)

This command is reserved for specific needs. It must be used with care since it can affect database performance.

The ADJUST INDEX CACHE PRIORITY command modifies the priority value of the index(es) related to the aField in cache for the current process. A call to this command replaces any priority value previously adjusted through the same command in the same process. This command adjusts the priority for a temporary need, for example when executing an import or a query.

Note: This command only works in local mode (4D Server and 4D); it cannot be used in 4D remote mode.

This command handles priority for all indexes related to the aField, including keyword indexes. However, it does not change composite indexes priority. 

Pass one of the following constants from the "Cache Management" theme in the priority parameter:

Constant Comment
Cache priority low
Cache priority very low
Cache priority normal Sets the cache priority to its default value
Cache priority high
Cache priority very high

Example  

You want to temporarily change the cache priority for the [Docs]Comments field index(es):

 ADJUST INDEX CACHE PRIORITY([Docs]Comments;Cache priority very high)
 QUERY([Docs];[Docs]Comments%"Extra") // search on an indexed field
  //... run several other queries or sorts on the same table
  // when finished, set back to normal cache priority
 ADJUST INDEX CACHE PRIORITY([Docs]Comments;Cache priority normal)



See also 

Get adjusted index cache priority
SET INDEX CACHE PRIORITY

 
PROPERTIES 

Product: 4D
Theme: Cache Management
Number: 1430

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16 R2

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)