-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Performance between wiredTiger mongo and mmapv1 #7080
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
Comments
I have noticed this recently also. I haven’t had time to look into it. |
Yes no problem, i will try to take a look next week ? |
@Moumouls I'm not a professional. But I will try my best. What kind of tests are we talking about? |
@uzaysan i found a test file where the performance loss is huge and can be a good entry point here to start inspecting.
Good news: If the issue is at the Adapter level it will easily fixable i think And also in the open source world, professional or not, it doesn't matter, contributing and helping is always welcome and will always be a step forward :) |
@Moumouls I reduced the testing time in my branch https://github.com/parse-community/parse-server/tree/improve-schema-cache The reason why MongoStorageAdapter.spec.js is slow is because its over deleting the database between tests. The over deleting the entire database between tests also occurs in other test specs files. I have a few ideas for improving test speeds. |
@dplewis what time difference do you have between mma and wired ? |
You are right @dplewis, delete calls on wiredtiger seems to be super slow I have modified before with beforeEach(done => {
console.time('perf');
new MongoStorageAdapter({ uri: databaseURI }).deleteAllClasses().then(() => {
console.timeEnd('perf');
done();
}, fail);
}); MMA log
Wired Log
|
A simple create find seems super slow too
MMA : 158.848ms Only testing createObject: Only testing rawFind: So class create/deletion seems to have issue |
@Moumouls I recently improved the JS SDK test suite and I found that if you use I used your example and got for wired.
|
Thanks for the investigation @dplewis, I'll try to take a look asap :) |
New Issue Checklist
Issue Description
Slow tests on wiredTiger, we need to check why it's so slow on this db engine.
Steps to reproduce
Run npm test with standalone mmap, time 278sec (MBP 16")
Run npm test with standalone wiredTiger time 657.318 (same pc)
Actual Outcome
Slow tests
Expected Outcome
Get better or similar time
Failing Test Case / Pull Request
Environment
master
Server
FILL_THIS_OUT
FILL_THIS_OUT
FILL_THIS_OUT
Database
Mongo
4.0.4 WiredTiger
FILL_THIS_OUT
Client
FILL_THIS_OUT
FILL_THIS_OUT
Logs
The text was updated successfully, but these errors were encountered: