There is optimization for sizeLong by using Atomic.Long to skip iteration. For temporary tables there can be counter implemented by j.u.c.AtomicLong to minimize overhead. Every CAS on counter writes record to disk. For temporary tables that will be deleted after close. It be only in memory.
There is optimization for sizeLong by using Atomic.Long to skip iteration. For temporary tables there can be counter implemented by j.u.c.AtomicLong to minimize overhead. Every CAS on counter writes record to disk. For temporary tables that will be deleted after close. It be only in memory.