[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: SERVER-30750 Push MooSE to enterprise master

SERVER-29673 Create a duplicate of the ephemeral_for_test storage engine

SERVER-29674 Add durable backend to Moose storage engine

SERVER-29801 Move SQLite to third party directory

SERVER-30108 Implement moose recovery unit

SERVER-30208 Fix Style

SERVER-30233 Fix Moose reverse cursor

SERVER-30284 Implement Moose Record Store Unit Tests

SERVER-30110 Implement sorted data interface bulk builder, index, unindex

SERVER-30109 Implement SortedDataInterface cursor

SERVER-30153 Implement MooseRecordStore::truncate

SERVER-30340 Implement Moose DocWriter

SERVER-30373 Refactor all sqlite api calls into SqliteStatement

SERVER-30156 Implement Moose validate

SERVER-30427 Fix Moose record store cursor segfault due to data lifetime

SERVER-30408 Cache numRecords and dataSize

SERVER-30456 Check Moose numRecords and dataSize in validate

SERVER-30154 Implement Moose capped collections

SERVER-30447 Implement MooSE Session Pool

SERVER-30586 Fix Moose JS core tests

SERVER-30657 Fix Moose capped num docs check

SERVER-30551 Implement Moose hasIdent() and getIdentSize()

SERVER-30666 Make MooseSessionPool releaseSession() consistent with getSession()

SERVER-30659 Use DBLevelLocking to lock Moose writes

SERVER-30691 Check Moose code consistency and style

SERVER-30736 Fix MooSE DB Exception Handling

remove undefined behavior

(cherry picked from commit a9f6206acb6811d3ba7166b8e2a0bbf3625d9f7b)
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/60c66a02fa4e4333ab6005b66a53ed9428c1e191

Comment by Githook User [ 18/Aug/17 ]

Author:

{'email': 'haley.connelly@mongodb.com', 'name': 'Haley Connelly'}

Message: SERVER-30750 Push MooSE to enterprise master

SERVER-29673 Create a duplicate of the ephemeral_for_test storage engine

SERVER-29674 Add durable backend to Moose storage engine

SERVER-29801 Move SQLite to third party directory

SERVER-30108 Implement moose recovery unit

SERVER-30208 Fix Style

SERVER-30233 Fix Moose reverse cursor

SERVER-30284 Implement Moose Record Store Unit Tests

SERVER-30110 Implement sorted data interface bulk builder, index, unindex

SERVER-30109 Implement SortedDataInterface cursor

SERVER-30153 Implement MooseRecordStore::truncate

SERVER-30340 Implement Moose DocWriter

SERVER-30373 Refactor all sqlite api calls into SqliteStatement

SERVER-30156 Implement Moose validate

SERVER-30427 Fix Moose record store cursor segfault due to data lifetime

SERVER-30408 Cache numRecords and dataSize

SERVER-30456 Check Moose numRecords and dataSize in validate

SERVER-30154 Implement Moose capped collections

SERVER-30447 Implement MooSE Session Pool

SERVER-30586 Fix Moose JS core tests

SERVER-30657 Fix Moose capped num docs check

SERVER-30551 Implement Moose hasIdent() and getIdentSize()

SERVER-30666 Make MooseSessionPool releaseSession() consistent with getSession()

SERVER-30659 Use DBLevelLocking to lock Moose writes

SERVER-30691 Check Moose code consistency and style

SERVER-30736 Fix MooSE DB Exception Handling

remove undefined behavior
Branch: moose
https://github.com/10gen/mongo-enterprise-modules/commit/a9f6206acb6811d3ba7166b8e2a0bbf3625d9f7b

Comment by Githook User [ 15/Aug/17 ]

Author:

{'username': 'Kimchelly', 'email': 'kim.tao@mongodb.com', 'name': 'Kim Tao'}

Message: SERVER-30408 Cache numRecords and dataSize
Branch: moose
https://github.com/10gen/mongo-enterprise-modules/commit/df8ff7c8cf0a3e488e5449666d22e88533010655

Comment by Githook User [ 07/Aug/17 ]

Author:

{'username': 'Kimchelly', 'email': 'kim.tao@mongodb.com', 'name': 'Kim Tao'}

Message: SERVER-30408 Cache numRecords and dataSize
Branch: moose
https://github.com/10gen/mongo-enterprise-modules/commit/34e630159028f9c64098e1244c0346bfcb2098d9

Comment by Githook User [ 01/Aug/17 ]

Author:

{'email': 'kim.tao@mongodb.com', 'username': 'Kimchelly', 'name': 'Kim Tao'}

Message: SERVER-30408 Cache numRecords and dataSize
Branch: moose
https://github.com/10gen/mongo-enterprise-modules/commit/dbefbbe3c5611dc34dc8e7e955ca2767027a6c3d

Generated at Thu Feb 08 04:23:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.