Hello community,
I playing with Mongo Event Store incubator feature in 1.2-SNAPSHOT.
And I have a question about indexes.
In org.axonframework.eventstore.mongo.EventEntry
/**
* Mongo object representing the index Events in Mongo.
*/
public static final BasicDBObject INDEX = new BasicDBObject
(AGGREGATE_IDENTIFIER_PROPERTY, 1).append(SERIALIZED_EVENT_PROPERTY,
1);
Do we ever need to search by the serialized event? If no then does the
SERIALIZED_EVENT_PROPERTY part of the index help in any way?
Would not it be better to create this?
public static final BasicDBObject INDEX = new BasicDBObject
(AGGREGATE_IDENTIFIER_PROPERTY, 1) .append(SEQUENCE_NUMBER_PROPERTY,
1);