Working functionally with third party libraries
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 17 05:41:44 PDT 2015
On Friday, 17 July 2015 at 11:47:30 UTC, sigod wrote:
> 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
+1 good to know.
More information about the Digitalmars-d-learn
mailing list