[SERVER-70859] Optimize collStats to not retrieve all data Created: 26/Oct/22 Updated: 11/Nov/22 Resolved: 11/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Pol Pinol | Assignee: | Pol Pinol |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Sprint: | Sharding EMEA 2022-11-14 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Nowadays, all the calls to collStats call the method "appendCollectionStorageStats" and retrieve all data without filtering anything. The idea is to not calculate unnecessary fields to possibly cause an improvement in performance. |
| Comments |
| Comment by Pol Pinol [ 11/Nov/22 ] |
|
As part of the fixes / code from |