[SERVER-76272] Improve cost model for Filter and Evaluation nodes Created: 19/Apr/23  Updated: 14/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Alexander Ignatyev Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-79635 [CQF] Consider the number of projecti... Closed
Related
related to SERVER-79633 [CQF] Consider the expression child o... Backlog
Assigned Teams:
Query Optimization
Participants:

 Description   

We calibrated first version of Cost Model with some simplifications in mind, one of them was that the cost of an ABT node depends on the number of incoming (processed) documents. As we highlighted in the design doc this assumption not correct for all ABT nodes.

The following nodes can be relatively easy to improve:

  • Filter node - we need to take into account number of predicates in its expression
  • Evaluation node in case of simple projections (show/hide fields) by taking into account number of the fields.

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