开发者

AppEngine datastore persistency manager get all except

I'm trying to find the most efficient way to get all objects from the datastore except ones already contained in a list.

Eg. PersistencyM开发者_开发知识库anager.getObjectsById(List) will return a list of objects with given ID's. I want a getObjectsExcept(List) method that will return all of the objects that are not contained in the given collection.


No such function, I am afraid.

You have to manually iterate over all object ids (using a paged query) and ignore those that are in your list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜