Code

Changes between Version 21 and Version 22 of NonSqlBackends


Ignore:
Timestamp:
08/28/09 04:32:48 (5 years ago)
Author:
wkornewald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NonSqlBackends

    v21 v22  
    2424 
    2525Implementing an auto-increment field in SimpleDB would be extremely difficult.  I would say impossible, actually.  The eventual consistency model just doesn't support it.  For the persistence layers I have written on top of SimpleDB, I use a UUID (type 4) as the ID of the object.  --garnaat 
     26 
     27Conclusion: Portable code should never assume that the "pk" field is a number. If an entity uses a string pk the application should continue to work. 
    2628 
    2729= Model =