Boss_db:find and limit greater than 1

41 views
Skip to first unread message

Avelino Puello

unread,
Sep 29, 2014, 8:23:57 PM9/29/14
to chica...@googlegroups.com
Hi Everybody,

I have a quick question here, I am using the MongoDB adapter with ChicagoBoss 0.8.13 and I am finding an issue when doing a boss_db:find with a limit greater than 1


Here is the example:
boss_db:find(post, [], [{limit,4},{offset,0},{order_by,timestamp}, descending]).

The issue is with the limit part, if I set limit to 1 will work fine( it will return 1 record only), now if I set it to a number greater then 1 doesn't matter which one(for example 4) it will return all record in the DB.

Offset, Order_by and DES/ASC work perfectly fine.

I also tried boss_db:find(post, [], [{limit,4}) but same issue as described above, it will only work fine if I do boss_db:find(post, [], [{limit,1})


Any help will be greatly apreciated.


Thanks!

can2nac

unread,
Sep 30, 2014, 10:30:58 AM9/30/14
to chica...@googlegroups.com
It might be not implemented with mongo driver, look sources
Reply all
Reply to author
Forward
0 new messages