If you don't open the query with
INDEXED-REPOSITION, then the AVM retrieves all records in sequence in order to satisfy a request such as
GET LAST. This can be very costly. If you do use
INDEXED-REPOSITION, the AVM uses indexes, if possible, to jump directly to a requested row, greatly improving performance in some cases. There are side effects to doing this, however, in terms of the integrity of the results list, as discussed in
INDEXED-REPOSITIONand field lists.