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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -