database - What's the fastest way to query for a free ID in an SQLite table? -
i heard sqlite has special processing id columns , stored special type, "primary numeric key".
so what's fastest query can write fetch free id? assuming id's before 1 occupied. max(id) best can get?
if need preallocate ids, create table stores last allocated id every table. preallocate id incrementing appropriate value , committing change, use needed, or forget.
this bit sequences work in oracle , postgres.
Comments
Post a Comment