views:

83

answers:

1

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

Eg. PersistencyManager.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.

+1  A: 

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.

Thilo