[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 |
| 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. |