perl-rethinkdb icon indicating copy to clipboard operation
perl-rethinkdb copied to clipboard

any documentation on using cursor ?

Open rob0101 opened this issue 8 years ago • 2 comments

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.

rob0101 avatar Jan 29 '17 01:01 rob0101

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?

njlg avatar Jan 29 '17 03:01 njlg

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.

rob0101 avatar Jan 29 '17 04:01 rob0101