QueryDSL: iterate over batches.

163 views
Skip to first unread message

Tim Gluz

unread,
Sep 27, 2013, 10:23:23 AM9/27/13
to clojure...@googlegroups.com
Hi, QueryDSL returns by default a batch with a size of 256docs.

How i can iterate over batches? Can i use a clojure function to get the next batch. 


Timo

Tim Gluz

unread,
Sep 27, 2013, 11:48:41 AM9/27/13
to clojure...@googlegroups.com
Hi, when i remove `query/sort`, then doseq iterates over all results as expected.
Going to investigate why.

Timo

Tim Gluz

unread,
Sep 27, 2013, 12:44:32 PM9/27/13
to clojure...@googlegroups.com
My bad - Everything is okay.

I replicated this issue with the low-level cursor object and i got a IndexError, which basically said that i'd tried to sort a too much data without indexing.
I added the proper index and this issue was gone.


Timo 


On Friday, September 27, 2013 4:23:23 PM UTC+2, Tim Gluz wrote:
Reply all
Reply to author
Forward
0 new messages