[SERVER-59933] Improve array handling for time-series metric indexes Created: 14/Sep/21  Updated: 28/Sep/21  Resolved: 28/Sep/21

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

Type: Task Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-59305 Reject timeseries measurements with a... Closed
Sprint: Execution Team 2021-09-20, Execution Team 2021-10-04
Participants:

 Description   

SERVER-59305 introduces a validation method which scans over the measurement data for time-series indexes if the corresponding control field is indexed, in order to reject measurements with disallowed array values.

We can avoid some of these scans by detecting

  1. if the min and max values saved the the control fields preclude any array-valued measurements or
  2. if we have already scanned this data field for another indexed key (e.g. the compound index defined on control.min.x and control.max.x might try to scan data.x twice).

There may be other conditions under which we can avoid an unnecessary scan, and we should investigate further



 Comments   
Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-59933 Improve array handling for time-series metric indexes
Branch: master
https://github.com/mongodb/mongo/commit/c1eb9dc5a6b507cff928d73cb43bb6d2656a0abd

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