mongodb - Multiple indexes on a single @Property? -
i have simple morphia @entity date property defined. i'd have 2 indexes on property: 1 ascending order, , descending order. however, when add @indexed annotation property, error saying cannot have duplicate annotation on field. there way accomplish this? better way?
you need 1 index. sorting should use index either way.
Comments
Post a Comment