[SERVER-52522] transform inserts in a time-series collection into upserts on buckets Created: 31/Oct/20  Updated: 29/Oct/23  Resolved: 12/Nov/20

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

Type: Task Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Related
related to SERVER-52883 time_series_simple.js fails when SBE ... Closed
is related to SERVER-52523 implement in-memory bucket catalog to... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-11-16
Participants:
Linked BF Score: 42

 Description   

The goal is to transform an insert of a measurement into a time-series collection (which is much like a writable non-materialized view) into an insert or update on the bucket collection. The measurement is first added to the in-memory bucket's vector of measurements to be inserted, then one writer takes all pending inserts, turns them into an upsert and commits, repeating until all writes are committed.



 Comments   
Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52522 transform time-series inserts to upserts in write command
Branch: master
https://github.com/mongodb/mongo/commit/b978ff2b123ea9b395445494fbaacd821d9d0641

Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52522 add test assertions on view pipeline results
Branch: master
https://github.com/mongodb/mongo/commit/5a1ed37c4f76d664237f302f329fb5a540d422a2

Comment by Githook User [ 10/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52522 transform time-series inserts to upserts in js test
Branch: master
https://github.com/mongodb/mongo/commit/3ea6b6e2b241766b9aee894e8a023b4dd0949f17

Comment by Benety Goh [ 31/Oct/20 ]

The bucket catalog described in SERVER-52523 may be used to support the upsert operations here. However, it is conceivable that this ticket may be accomplished without a bucket catalog. In that case, the transformation initially implemented here may be used to inform the bucket catalog interface design.

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