[SERVER-62] index key generation is not completely implemented for embedded objects / arrays Created: 21/May/09  Updated: 12/Jul/16  Resolved: 11/Aug/09

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

Type: Improvement Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently only a single array is expanded when creating keys for an index. So for example the implementation is incomplete when creating an index on

{ 'a.b': 1 }

for object { a: [

{ b: [ 2 ] }

] }.

for an index on

{ a:1,b:1}

and object

{ a:[ 2 ], b:[ 2] }

we decided not to allow indexing at one point because the # of keys would be exponential in the # of fields



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Aug/09 ]

Released in 0.9.8

Comment by Aaron Staple [ 11/Aug/09 ]

tested in namespacetests.cpp

Generated at Thu Feb 08 02:52:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.