That's also what I would have assumed. It's actually a pretty smart optimization. But only after reading this - https://sqlite.org/queryplanner.html - super interesting read and starts from zero.
c
Colton Idle
08/31/2023, 1:52 PM
I just re-read and noticed this line
1. If the AUTOINCREMENT keyword appears after INTEGER PRIMARY KEY, that changes the automatic ROWID assignment algorithm to prevent the reuse of ROWIDs over the lifetime of the database. In other words, the purpose of AUTOINCREMENT is to prevent the reuse of ROWIDs from previously deleted rows.