Product Documentation

c-treeACE V10.0 Update Guide

Previous Topic

Next Topic

Persisted Current Index Buffer Node for NXTKEY and PRVKEY Operations

The NXTKEY() and PRVKEY() functions already remember the offset of the current index node so that subsequent calls can continue scanning from the previous key position. Now, c-treeACE remembers the address of the index buffer that holds the current node.

Whenever the current index node offset is saved for later use, the current index buffer address is also saved. When NXTKEY() or PRVKEY() find that the current index buffer address has been set, these functions lock that index buffer and then verify that the buffer still contains the same node. If so, the function continues processing using the locked index buffer. If not, the function calls the node management routines as usual, and remembers the address of the returned node buffer.

TOCIndex