[SERVER-37896] Reduce execution time of wildcard_index_basic_index_bounds.js Created: 02/Nov/18  Updated: 29/Oct/23  Resolved: 09/Nov/18

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.6

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 56

 Description   

The wildcard_index_basic_index_bounds.js integration test is currently taking an excessive amount of time to complete. After some local testing, the source of this excess runtime appears to be the calls to arrayEq, which asserts that two arrays of objects are equivalent regardless of document ordering; we use this to verify that the indexed results are the same as the results of an equivalent COLLSCAN.

[jsTest] ----
[jsTest] Total time spent in arrayEq: 1228.322s
[jsTest] ----
...
[executor] 2018-11-02T13:41:39.930+0000 Summary: All 4 test(s) passed in 1313.01 seconds.

So we're spending around 93.5% of our time just comparing arrays. The test should be reworked to avoid this.



 Comments   
Comment by Githook User [ 09/Nov/18 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-37896 Reduce execution time of wildcard_index_basic_index_bounds.js
Branch: master
https://github.com/mongodb/mongo/commit/1ccd9a03ba52b6c9654c8683116a46893d399f85

Generated at Thu Feb 08 04:47:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.