Code

Changes between Version 11 and Version 12 of NonSqlBackends


Ignore:
Timestamp:
08/12/09 22:33:36 (5 years ago)
Author:
wkornewald
Comment:

count() won't work

Legend:

Unmodified
Added
Removed
Modified
  • NonSqlBackends

    v11 v12  
    4747 
    4848query.count() will be problematic since a scalable count() method doesn't exist in app engine (does it exist in SimpleDB?).  Perhaps this will be alleviated by cursors/bookmarks, but I suspect we'll have to address this some other way.  An automatic sharded counter in the manager would allow for an "almost accurate" count in most situations.  It would certainly be good enough for the most popular use case, "how many pages of results do I have?" 
     49 
     50The sharded counter can only be used for counting a very specific query, so you'd either have to specify all possible queries upfront or manage the counter manually. --wkornewald