-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
JS driver - Maximum call stack size exceeded on big arrays #2839
Comments
Unlikely. It's probably bad recursive code. |
The error is triggered by
It looks like this is an expected behavior: https://code.google.com/p/v8/issues/detail?id=2896 Should we make the MakeArray class not extend RDBOp? And just manually copy what we need? Moving to subsequent for now. |
I've been playing around with rethinkdb for an hour and ran into this 2 year old issue. |
@deontologician can you tell how much work it would be to fix this? |
The issue is that the It's not hard to fix, but a bit sloggish, since we have to go to every use of super(args...) in RdbOp subclasses and convert them to passing the array directly (as well as changing the RdbOp constructor to accept an array instead of arguments). |
Ok, thanks for the explanation @deontologician . @nathanboktae Do you have a work-around for this or is this blocking you? |
Blocked if I was still using this package, but now I'm streaming results with client // pg client
.query(new QueryStream('SELECT * FROM users'))
.pipe(r.db('hackathon').table('users').toStream({ writable: true })) It just works and it's fast. Thanks @neumino ! |
The pipes in rethinkdbdash are really nice. We are still planning on making it the official driver |
Just ran into this while developing a data migration script - currently the largest insert is 117,094 records. Workaround was to chunk them at 60k (70k didn't work) and insert in a loop. |
While doing some random tests, I found that this fails with a
RangeError: Maximum call stack size exceeded
It's also broken in 1.13.x
And it works fine with rethinkdbdash. Maybe it's a coffee-script issue?
The text was updated successfully, but these errors were encountered: