Hi There,

Im wondering when ensureIndex should be called on the template.

Im currently using an xml bean definition to create the monogTemplate. Is there a way to specify the index in the xml definition or is this done some other way?

Should I use @Configuration instead and call ensureIndex after the new mongo template call?

Thanks,
Dave