[SERVER-12321] should fully normalize canonical query in canonical query Created: 10/Jan/14  Updated: 11/Jul/16  Resolved: 15/Jan/14

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

Type: Bug Priority: Major - P3
Reporter: hari.khalsa@10gen.com Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The cache must sort the query tree in order to form a consistent key.

This is required for {a:1, b:1} to map to the cache entry for {b:1, a:1}, which currently does not happen. We currently do not fully normalize the CQ before we probe the cache. We should put all sorting/normalization into CQ so we don't have to keep track of how "normalized" it is at every step.



 Comments   
Comment by Scott Hernandez (Inactive) [ 14/Jan/14 ]

Dave, do you think this add much overhead to the cost of creating the canonical query? Were any (micro)benchmarks/perf-tests done?

Comment by Githook User [ 14/Jan/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-12321 fully normalize in canonical query
Branch: master
https://github.com/mongodb/mongo/commit/e5f17aafb8c2fbdcb9f7e6b478594a676fd2955b

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