Skip to content
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

Segmentation fault with large result sets #67

Open
Morgon opened this issue Apr 30, 2012 · 0 comments
Open

Segmentation fault with large result sets #67

Morgon opened this issue Apr 30, 2012 · 0 comments

Comments

@Morgon
Copy link

Morgon commented Apr 30, 2012

It would appear that very large result sets (5 million rows) causes a segfault.

this.query()
    .on('each', function(row, index, last) { console.log(row, index); })
    .select(["id", "name", "country"])
    .from("users")
    //.limit(1000)
    .execute(function(err, rows) {
        if (err) {
            console.log('SQL ERR: ' + err);
            return;
        }
    });

If I have the limit in there, it works fast and just fine.
If I time the node process, it's almost exactly 10 seconds before it fails.

db-mysql 0.7.6
node 0.6.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant