[SERVER-1550] Reorder ops in Chunk::_splitIfShould Created: 02/Aug/10  Updated: 12/Jul/16  Resolved: 21/Sep/10

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 1.7.1

Type: Improvement Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Alberto Lerner
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

should call pickSplitPoint() after checking if getPhysicalSize() is large enough to split.

Ideally the two calls could be combined into a single command so only one pass over the data is necessary (very important with random shard keys).



 Comments   
Comment by Alberto Lerner [ 21/Sep/10 ]

Addressed by SERVER-1545

Comment by auto [ 12/Sep/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: use splitVector instead of datasize and mediankey. 1 command vs. 2 and should be faster and more extensible.
still some code cleanup to do probably
SERVER-1550 SERVER-1779
http://github.com/mongodb/mongo/commit/2418da510eaf2fc5d1661ba816942086dfc9090e

Generated at Thu Feb 08 02:57:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.