[SERVER-16233] add support for storage options to createIndex Created: 19/Nov/14 Updated: 27/Oct/15 Resolved: 03/Dec/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 2.8.0-rc2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
In the same vein as createCollection storage options. This needs to be aligned with work that milkie is doing to persist the catalog metadata options. See: |
| Comments |
| Comment by Githook User [ 03/Dec/14 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 03/Dec/14 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 03/Dec/14 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 03/Dec/14 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Eric Milkie [ 26/Nov/14 ] |
|
We may in the future convert some of the WiredTiger storage engine options into explicit BSON booleans/integers as part of the createIndex command spec, but for now it will just be a BSON string parameter. This string will be passed to any pluggable storage engine, so it will probably always remain as a parameter to this command. |
| Comment by David Golden [ 26/Nov/14 ] |
|
Users of the Perl driver are going to have problems if arbitrary storage engine option are strongly typed. For example, the existing boolean options (e.g. unique, sparse) need custom handling in the driver to coerce them into special classes that serialize to BSON booleans. If arbitrary options likewise require boolean values to be coerced on the driver side, the driver won't know which ones to convert and users will have to do it themselves, which they'll almost certainly forget to do because Perl doesn't have a boolean type. We could make life easier for users if boolean index options also allowed BSON integers to determine true/false values. |