You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schemeshard: remove unreasonable iteration over entire ShardInfos
PathShardsLimit() performs pedantic validation of the path's current shards
count by recalculating it through iteration over ShardInfos of the entire
database and matching them to the path (!). See CollectAllShards().
That is unreasonable and too slow for the hot spot that is PersistSingleStats().
(Though appropriate for slow paths like TSubOperation::Propose() etc.)
Replacing PathShardsLimit() also eliminates aditional TPath construction
and hashmap lookup.
0 commit comments