Hi, > > I think the best you can do with implementations that require an > > explicit release of resource is to perform some kind of batch loading > > ever N items with increasing offset. this is actually what the MongoDB > > Java driver does under the hood.
hmm, I had another look at how mongo does it. it keep a cursor on the server, which should also be closed: http://docs.mongodb.org/manual/core/cursors/#cursors it appears, this is current missing in MongoDocumentStore. I will create an issue about this... > Oops. That does mean though that the result might be inaccurate, right? depending on the query, this is possible: http://docs.mongodb.org/manual/faq/developers/#faq-developers-isolate-cursors regards marcel
