For long running |object| operation, consider using either the
:command:`eval` command with nolock: true
or using :doc:`other
server side code execution options </core/server-side-javascript>`.
You can not use |object| with :term:`sharded <sharding>` collections. In general, you should avoid using |object| in :term:`sharded clusters <sharded cluster>`; nevertheless, it is possible to use |object| with non-sharded collections and databases stored in a :term:`sharded cluster`.
.. versionchanged:: 2.6