[SERVER-11828] Tag ranges for embedded shard keys Created: 22/Nov/13  Updated: 22/Nov/13  Resolved: 22/Nov/13

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

Type: Improvement Priority: Major - P3
Reporter: Andre Spiegel Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6999 Embedded "dot-notation" fields broken... Closed
Participants:

 Description   

While it is possible to use an embedded field as a shard key, it is not possible to define tag ranges for such a key.

For example, I have set up the field "_id.ts", a timestamp, as a shard key, but defining a tag range for it

sh.addTagRange ("ncdc.data", { "_id.ts" : MinKey }, { "_id.ts" : ISODate("2012-12-01T00:00:00") }, "archive" )

results in the error "can't have . in field names [_id.ts] at src/mongo/shell/collection.js:145". This is probably an implicit restriction due to the way tag ranges are specified, but it is still unfortunate and should be possible.



 Comments   
Comment by Scott Hernandez (Inactive) [ 22/Nov/13 ]

Dup of SERVER-6999

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