-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor with results size > 1Mb #121
Comments
If I add: But apparently, the cursor mechanism hangs in the creation of the lazy-seq... |
This looks like the same issue as #69? What happens is that RethinkDB returns different result types based on the size of the results. We should be returning a cursor interface to all of these results, but currently small results are returned as objects and big results are returned as cursors. This is not ideal and will be changing. As far as the cursor hanging in lazy-seq, can you try running your query and enabling DEBUG logging on Cursors need to be consumed to request more results, what were you doing when you found it hanging? |
For instance, a 'map' or a 'first' operation on the cursor will block. I'll activate logging, and will keep you posted... |
I'm trying to fetch a result that apparently exceeds the 1Mb default size of 'maxBatchBytes' run command option.
Apparently trying to operate a cursor with datasets with a size > 1mb, is blocking ('with-open' may have closed connection and batch becomes unavailable?)
And by the way, is there any way to pass options to the 'run' command
like the ones described at: http://www.rethinkdb.com/api/javascript/run/ ?
Am I trying to do this in a wrong way ?
Here's a sample which works with limit of 400 (<1mb, plain records) and does not with limit >= 480 (>1mb, cursor returned, result stalled forever):
The text was updated successfully, but these errors were encountered: