Hello! I have a time series collection with a granularity of minutes and recently found that it takes over a second to delete even 10 minutes of data. I did some profiling and found that the Deletes do use indexes to fetch the time series buckets but the TS_MODIFY stage takes a couple of seconds. I’ve been trying to see why that could be and the only thing I could think of was that Mongo unpacks the bucket(s), rewrite the bucket without the removed data, and remakes the buckets. Is that accurate? I tried looking into the documentation to see if there’s any additional information or insight into this process but I couldn’t really find anything. Any info or help would be very much appreciated!
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Debugging connection process | 2 | 538 | Jun 2024 |
How to check if BulkOp is empty or not | 5 | 783 | Jul 2024 |
GeoJSON Query and Aggregation | 0 | 49 | Sep 2024 |
MongoDB Server Disconnecting After Initial Connection: MongoServerSelectionError: getaddrinfo EAI_AGAIN undefined | 0 | 51 | Dec 2024 |
How to disconnect when connection is idle with NodeJS driver? | 0 | 13 | 8d |