I'm using @Indexed annotation using Spring Data Mongo followed by @Document at a class level.
I notice from the logs that each time the connection to Mongo DB is established, a creation of the index is performed.
Is this normal behaviour and won't it create an overload on the Database?
Please make me understand the lifecycle of @Indexed annotation and is there any way possible to ignore the index creation if already created?
I'm unable to find anything documented for this.