Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datastore Query filtering on list

Select all records, ID which is not in the list

How to make like :

query = Story.all()

query.filter('ID **NOT IN** =', [100,200,..,..])
like image 667
benasio Avatar asked Mar 10 '10 02:03

benasio


1 Answers

There's no way to do this efficiently in App Engine. You should simply select everything without that filter, and filter out any matching entities in your code.

like image 157
Nick Johnson Avatar answered Oct 04 '22 21:10

Nick Johnson