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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31aaf-2bdb9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31aaf-2bdb9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?