[DOCS-11691] Docs for SERVER-34851: Disallow index selection for identical min & max values on find Created: 11/May/18  Updated: 29/Oct/23  Resolved: 12/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0-rc0, 3.2.21, 3.6.6, 3.4.16

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-34851 Disallow index selection for identica... Closed
Participants:
Days since reply: 5 years, 22 weeks, 5 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Description:

Prior to this patch a query could be run with $min and $max values that were identical. As $min is inclusive and $max is exclusive, this would always result in an empty range. May be worth documenting that $max must always be greater than $min.

Scope of changes:

  • meta/min
  • meta/max
  • cursor/min
  • cursor max
  • 4.0-compatibility

(for backports – just do pull request for releases not out yet)

Impact to other docs outside of this product:

none

MVP:

Resources:

Engineering Ticket Description:

As the max value is an exclusive bound, setting min and max to the same value will match nothing, even when an index exists that supports the key provided.



 Comments   
Comment by Githook User [ 07/Sep/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11691: cursor.min/cursor.max (v3.2.21)
Branch: v3.2
https://github.com/mongodb/docs/commit/befd244b002ecd9212b6b428f3f4734a2fcbc0c7

Comment by Githook User [ 12/Jul/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11691: cursor.min/cursor.max (v3.4.16)
Branch: v3.4
https://github.com/mongodb/docs/commit/1d390709ddb144ee60f5205dd5820e0ee6e1366c

Comment by Githook User [ 12/Jul/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11691: cursor.min/cursor.max (v3.6.6)
Branch: v3.6
https://github.com/mongodb/docs/commit/24cb58a156581c9129ec625e5e43e206664d8b6b

Comment by Githook User [ 12/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11691: cursor.min/cursor.max
Branch: master
https://github.com/mongodb/docs/commit/cc2cc9964d06476b443fa3e9f0e1c9d05bab44ea

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