-
Apr 4th, 2011, 11:09 AM
#1
Best Place to Call ensureIndex
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules