Skip to content

Some of the mongoTuning.js function can't be used in mongodb6 #3

Description

@yuing32

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)......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions