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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -