PrepareToAdd method

Applies To
TQDB, TQDBItem, TQDBView

Declaration
procedure PrepareToAdd(NumberOfItems : TItemIndex);

Description
The PrepareToAdd method speeds up the process of adding a large batch of items. Call PrepareToAdd with NumberOfItems equal to the number of items you are about to add.

You do not need to use this method unless you are adding a large number of items at once or the QDB file is already very large (thousands of items).

The speed increase arises from allocating memory for the new items in one go rather than piecemeal.