[AC-3273] ALLOY: Enhance SQL adapter to support INT AUTOINCREMENT id fields, instead of random GUID id fields.
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-07T00:26:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | alloy, sqlite |
Reporter | Simon Giles |
Assignee | Shak Hossain |
Created | 2012-12-27T19:22:07.000+0000 |
Updated | 2016-03-08T07:57:41.000+0000 |
Description
Currently ID fields default to using randomly generated GUIDs stored as TEXT fields. It would be better to use SQLite INT PRIMARY KEY AUTOINCREMENT fields, which map to the underlying SQLite ROWID, at this would have the following improvements over the existing GUID implementation:
1. no chance of random id value collision (admittedly it's pretty small currently, but not non-existant).
2. require considerably less storage space (both in field size and in index size)
3. more performant on lookups.
This was fixed as of Alloy 0.3.5