WITHOUT ROWID is a very useful tool to have in the bag for sqlite. didn't know t...
Graham Sutherland / Polynomial @gsuberland@chaos.social
WITHOUT ROWID is a very useful tool to have in the bag for sqlite. didn't know this was a thing.
I've got a very large many-many map table with a composite PK of two integers, like left_id, right_id.
turns out by default sqlite adds a rowid meta-column to tables. when the PK is a single integer it's a direct alias (no additional storage) but in other cases, like my table, it ends up as a separate stored value. for small row sizes this is rather space inefficient. it can also be slower to query