Working functionally with third party libraries

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 17 04:47:28 PDT 2015


On Friday, 17 July 2015 at 09:07:29 UTC, Jarl André Hübenthal 
wrote:
> But its pretty nice to know that there is laziness in D, but 
> when I query mongo I expect all docs to be retrieved, since 
> there are no paging in the underlying queries? Thus, having a 
> lazy functionality on top of non lazy db queries seem a bit off 
> dont you think?

Not true. There's paging in MongoDB. See [Cursors][0] and 
documentation for `find` method. Also, look at [`vibe.d`'s 
implementation][1].

[0]: http://docs.mongodb.org/manual/core/cursors/
[1]: 
https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/db/mongo/cursor.d


More information about the Digitalmars-d-learn mailing list