KI_READ_RANDOM
Argument | Enumeration | Purpose |
---|---|---|
handle | Handle | |
path | Index path | |
SYM(rowbuf$) | Symbol of a row buffer | |
eLockType | KCML_KDB_LOCK_ENUM | Optional lock type |
bQuery | Force use of DEFQUERY | |
status | KDB_ERROR_ENUM | Return code |
rowid$ | Pointer to row |
KI_READ_RANDOM
This is similar to KI_READ but it takes the key information directly from the row buffer, thus avoiding the use of KI_BUILD, and which can limit the columns in the result set if the row buffer was DIMmed using a DEFVIEW. Using a view can lead to significant performance improvements with SQL databases. Columns not included in the view will be undefined
The row can be locked by setting the optional eLockType argument to one of the enumerated constants. The lock can be either a short term transactional lock or a long term lock.