How to view and set the lock granularity of mongodb

my mongodb is a MMAPv1 engine, how to view and set lock granularity?

Mar.09,2021

as far as I know, no database can "set" lock granularity. What is the purpose of setting the granularity of the lock? The
MMAPv1 engine is at the collection level after > = 3.0, and before it is at the database level.
you can take a look at the document FAQ Concurrency

.
Menu