Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3273] ALLOY: Enhance SQL adapter to support INT AUTOINCREMENT id fields, instead of random GUID id fields.

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-02-07T00:26:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsalloy, sqlite
ReporterSimon Giles
AssigneeShak Hossain
Created2012-12-27T19:22:07.000+0000
Updated2016-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.

Comments

  1. Tony Lukasavage 2013-02-07

    This was fixed as of Alloy 0.3.5

JSON Source