Bulk vs Single operations for 1 document

Hi, I understand that using bulk operations when there are many operations to be made brings performance benefits based on forums and documentation. However, how does a bulk operation with a single operation compare to simply using a single operation? E.g. update document.

Asking this to find out if code with the bulk operation should be reused for single operations as well.

Thank you! :slight_smile:

Welcome to our community! :smiley:

For single actions, there's not a lot of benefit.

Hi @warkolm thank you! :slight_smile:

Is there any benefit though? Or would it be worse that using single operations?

Thanks in advance!

If you have to code around picking between these based on the document count, just use bulk.

2 Likes

Alright, thank you! :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.