Add `Engine.preallocate(long[] recids)` to preallocate recids in batch