[SERVER-15274] Implement remove({}) as Collection::truncate() Created: 16/Sep/14  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Performance, Querying
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 3
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-15033 Implement truncate() for non-capped M... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

Once SERVER-15033 is completed it will be possible to implement remove({}) as a call to Collection::truncate() which is O(1) rather than O(n).



 Comments   
Comment by Oleg Rekutin [ 25/Jul/16 ]

This would be very helpful to improve the performance of testing that requires empty collections at the start of every test case.

Generated at Thu Feb 08 03:37:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.