Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-43921 - [BP] Reduce time taken for listReplicaCount
Back porting to 6.5.2 of MB-42063 - Reduce time taken for listReplicaCount As the number of create/drop tokens in Metakv are less in number when compared to number of indexes in node, while fetching tokens for calculting ReplicaCount it should be less expensive to fetch all tokens and update the count than checking for a token for every index. Time taken for getLocalReplicaCount function is improved from 2sec to 5ms on average. Change-Id: I6731ce2ea6fdebf70f0b6f256e5da3aa299a1cad (cherry picked from commit f0a19f7)
- Loading branch information
1 parent
8db3659
commit e7559c2
Showing
3 changed files
with
114 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters