[SERVER-18624] listCollections command should not be O(n^2) on MMAPv1 Created: 21/May/15 Updated: 07/Oct/15 Resolved: 21/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Performance, Storage |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.7, 3.1.9 |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | Mathias Stearn | Assignee: | Charlie Swanson |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Backport Completed: | |||||||||||||||||
| Sprint: | Quint 9 09/18/15 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Currently it gets the list of namespaces then gets the CollectionOptions for each namespace. The second step involves a table-scan of system.namespaces. Due to Instead, the storageEngine API should have a way to get all namespaces and their CollectionOptions in one pass. This should speed up both MMAP and KVCatalog-based engines. |
| Comments |
| Comment by Githook User [ 21/Sep/15 ] |
|
Author: {u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}Message: This makes it constant time to get the collection options for a collection, |
| Comment by Githook User [ 21/Sep/15 ] |
|
Author: {u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}Message: This makes it constant time to get the collection options for a collection, |