[SERVER-54006] Make listCollections iterate through in-memory state to collect collection information rather than on-disk Created: 25/Jan/21  Updated: 27/Oct/23  Resolved: 07/Jun/23

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Erin Liang
Resolution: Gone away Votes: 0
Labels: neweng, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-67289 Remove Feature Flag for PM-2218 Closed
Related
related to SERVER-53829 Make listCollections and listIndexes ... Closed
Assigned Teams:
Storage Execution
Sprint: Execution Team 2023-06-12
Participants:

 Description   

Currently listCollections does a query on the durable catalog. It would be faster and simpler to iterate through the CollectionCatalog.

It is thought that the durable read was required in order to support the mmap storage engine, which is no longer supported as of v4.0.



 Comments   
Comment by Gregory Wlodarek [ 07/Jun/23 ]

Durable catalog read was removed in https://github.com/mongodb/mongo/commit/11de948b0c50df7d12de09ae0f01e791fc5d70d7

Comment by Dianna Hohensee (Inactive) [ 25/Jan/21 ]

SERVER-53829 puts in some extra lock infrastructure in order to support reading from a storage snapshot without coll/db locks. That lock infrastructure will no longer be needed once we only read from memory: it would be great to remove it with this work.

Generated at Thu Feb 08 05:32:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.