Skip to content

Conversation

christophstrobl
Copy link
Member

We now prefix explicitly named indexes on nested types (eg. for embedded properties) with the path pointing to the property. This avoids errors having equally named index definitions on different paths pointing to the same type within one collection.

Along the way we harmonized index naming for geospatial index definitions where only the properties field name was taken into account where it should have been the full property path.

Deprecated collection attribute for @Indexed, @CompoundIndex and @GeoSpatialIndexed.
Removed attribute expireAfterSeconds from @CompoundIndex.

Note: It might happen that one has to explicitly drop some of the already created index structures in order the get the build working as index structures changed due to the removal of the ttl attribute.


cbbb293 should be back ported to 1.5.x - some minor glitches there but doable.

Prepare issue branch.
We new prefix explicitly named indexes on nested types (eg. for embedded properties) with the path pointing to the property. This avoids errors having equally named index definitions on different paths pointing to the same type within one collection. Along the way we harmonized index naming for geospatial index definitions where only the properties field name was taken into account where it should have been the full property path.
Deprecated `collection` attribute for @indexed, @CompoundIndex, @GeoSpatialIndexed. Removed deprecated attribute `expireAfterSeconds` from @CompoundIndex.
christophstrobl added a commit that referenced this pull request Aug 26, 2014
We new prefix explicitly named indexes on nested types (eg. for embedded properties) with the path pointing to the property. This avoids errors having equally named index definitions on different paths pointing to the same type within one collection. Along the way we harmonized index naming for geospatial index definitions where only the properties field name was taken into account where it should have been the full property path. Original pull request: #219.
christophstrobl added a commit that referenced this pull request Aug 26, 2014
Deprecated collection attribute for @indexed, @CompoundIndex, @GeoSpatialIndexed. Removed deprecated attribute `expireAfterSeconds` from @CompoundIndex. Original pull request: #219.
@odrotbohm odrotbohm closed this Aug 26, 2014
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1025 branch August 26, 2014 13:03
christophstrobl added a commit that referenced this pull request Aug 26, 2014
We new prefix explicitly named indexes on nested types (eg. for embedded properties) with the path pointing to the property. This avoids errors having equally named index definitions on different paths pointing to the same type within one collection. Along the way we harmonized index naming for geospatial index definitions where only the properties field name was taken into account where it should have been the full property path. Original pull request: #219.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants