[SERVER-30408] Cache _numRecords and _dataSize Created: 28/Jul/17 Updated: 12/Sep/18 Resolved: 01/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.13 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | kim.tao | Assignee: | Kim Tao |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Storage 2017-08-21 |
| Participants: |
| Description |
|
Currently Moose fetches the number of records and the total data size on each call to dataSize() and numRecords(). The record store interface recommends caching these values rather than fetching the data on each call. |
| Comments |
| Comment by Githook User [ 28/Aug/17 ] |
|
Author: {'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com'}Message:
remove undefined behavior (cherry picked from commit a9f6206acb6811d3ba7166b8e2a0bbf3625d9f7b) |
| Comment by Githook User [ 18/Aug/17 ] |
|
Author: {'email': 'haley.connelly@mongodb.com', 'name': 'Haley Connelly'}Message:
remove undefined behavior |
| Comment by Githook User [ 15/Aug/17 ] |
|
Author: {'username': 'Kimchelly', 'email': 'kim.tao@mongodb.com', 'name': 'Kim Tao'}Message: |
| Comment by Githook User [ 07/Aug/17 ] |
|
Author: {'username': 'Kimchelly', 'email': 'kim.tao@mongodb.com', 'name': 'Kim Tao'}Message: |
| Comment by Githook User [ 01/Aug/17 ] |
|
Author: {'email': 'kim.tao@mongodb.com', 'username': 'Kimchelly', 'name': 'Kim Tao'}Message: |