Enabling profile to particular collection

HI All,

in mongoDB is there any way to enable profiling only for queries which access collection.?

Regards,
Naseer

@ naseer561

As the documentation here says

You can enable and configure profiling for individual databases or for all databases on a mongod instance

So the answer is “No”.