The list of keys used for looking up shards to send requests to was pulled from the set of the keys for every shard in the lookup operation, and rebuilt for every request. This work has been pulled out so it is only performed once. With a large enough set of shards this change will prevent the lookup operation from chewing up every CPU.
The list of keys used for looking up shards to send requests to was pulled from the set of the keys for every shard in the lookup operation, and rebuilt for every request. This work has been pulled out so it is only performed once. With a large enough set of shards this change will prevent the lookup operation from chewing up every CPU.