Performance of mutateIn

Hello,
I want to ask you if it is more efficient to make 3 separate mutateIn calls or a single one like this or it is the same.

mutateIn(“hotel_1368”, List.of(remove(“ty”));
mutateIn(“hotel_1368”, List.of(remove(“tz”));

mutateIn(“hotel_1368”, List.of(remove(“ty”), List.of(remove(“tz”), …);

If someone has some links/ books of best practices for performances with java sdk would be appreciated.
Thanks for the support.
Andrea

Each mutateIn operation makes a round-trip to a data node. It’s more efficient to make one call.

1 Like

For general performance - KV operations are much faster than query operations. And using reactive operations can be used to execute operations concurrently which may give your application a performance boost.

1 Like