perl-rethinkdb
perl-rethinkdb copied to clipboard
any documentation on using cursor ?
Hi, Been trying to find some documentation or examples of using a cursor to step through results from a query. Is there any ?
Also, is "between" missing ?
thanks for rethinkdb for perl. We're reliant on it.
cheers, rob.
Here is the documentation for between: http://njlg.info/perl-rethinkdb/rethinkdb/query/table/#between
I'm not sure there is a way to just use a cursor to page through the results. The driver will usually fetch all the results from the database given any query. (The driver may not receive all of the documents in one query, but it will continue asking for all of them before it returns them)
I might just be misunderstanding however. Is there something you see on the RethinkDB website that points at what you want to do?
Thanks for the the link for "between".
The cursor query.. Was just hoping to be able to read through the results from a query one at a time without having to load them into a huge array. Some queries may return thousands of matches.
cheers, rob.