Some of the mongoTuning.js function are not working in mongodb6.
(mongoTuning.js is an excellent tool~ Hope it can still work in the future)
For example:
var explainCsr=db.<collection_name>.explain().find()
mongoTuning.quickExplain(explainCsr)
It is not working currently because .explain().find() is not a cursor anymore.
The solution for this case: db.<collection_name>.find().explain()
Because the result is still cursor.
=================================
Another case is "mongoTuning.keyServerStats(5000)"
TypeError: Cannot read properties of undefined (reading 'rate')
Seem the case is same (cursor)~ But I am not able to fix it currently because the code is quite difficult for me
(I am not programmer)......
Some of the mongoTuning.js function are not working in mongodb6.
(mongoTuning.js is an excellent tool~ Hope it can still work in the future)
For example:
var explainCsr=db.<collection_name>.explain().find()
mongoTuning.quickExplain(explainCsr)
It is not working currently because .explain().find() is not a cursor anymore.
The solution for this case: db.<collection_name>.find().explain()
Because the result is still cursor.
=================================
Another case is "mongoTuning.keyServerStats(5000)"
TypeError: Cannot read properties of undefined (reading 'rate')
Seem the case is same (cursor)~ But I am not able to fix it currently because the code is quite difficult for me
(I am not programmer)......