How to query in batches by MongoDB

demand:

when querying the list of articles, the management interface also displays the total number of articles that meet the query criteria. For example, the search article content on the page contains the list of articles with artificial intelligence and displays the query statements corresponding to the total number of articles

.
db.posts.find({text://})
db.posts.count({text://})

but how to batch query? Similar to bulkWrite batch update insert

db.posts.bulkQuery([
{findMany:{text://}},
{count:{text://}}
])

and preferably within MongoDB is also a concurrent query

Mar.06,2021

what about asynchronous programming?

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-1b3e1dc-2c3dd.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-1b3e1dc-2c3dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?