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

[-] mongodb get all events fix #20

Closed

Conversation

nikolaylukyanchuk
Copy link

fix error

{ [MongoError: Runner error: Overflow sort stage buffered data usage of 33554600 bytes exceeds internal limit of 33554432 bytes] name: 'MongoError' }

@adrai
Copy link
Contributor

adrai commented Sep 30, 2014

only "streamRevision: 1" is missing in the ensureIndex call before, right?

adrai added a commit that referenced this pull request Sep 30, 2014
@adrai
Copy link
Contributor

adrai commented Sep 30, 2014

v1.0.4

@adrai adrai closed this Sep 30, 2014
@nikolaylukyanchuk
Copy link
Author

I try to update this index firstly, but had the same error, I think it is because we create index that sorting firstly from {streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1...} but we try to get data like { sort: { commitStamp: 1, streamRevision: 1, commitSequence: 1 } }

@adrai
Copy link
Contributor

adrai commented Sep 30, 2014

can you check with v1.0.4 or write a test or sample code for this?

@nikolaylukyanchuk
Copy link
Author

Checked new version 1.0.4, and have the same error.

{ [MongoError: Runner error: Overflow sort stage buffered data usage of 33554600 bytes exceeds internal limit of 33554432 bytes] name: 'MongoError' }

I checked the database index, it is ok
{
"streamId" : 1,
"aggregateId" : 1,
"aggregate" : 1,
"context" : 1,
"commitId" : 1,
"commitStamp" : 1,
"commitSequence" : 1,
"streamRevision" : 1
}

I try to replay 200 000 production events. Can you add new one index to fix the prblem?

@adrai
Copy link
Contributor

adrai commented Sep 30, 2014

v1.0.5

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

Successfully merging this pull request may close these issues.

2 participants