DropIndexesOnStart
Dropping all indexes on start
The @DropIndexesOnStart
annotation forces the deletion of all created indexes when creating the repository.
Note: This should only be used for testing or debugging purposes, as ALL indexes are permanently deleted!
Example Usage of @DropIndexesOnStart
:
@Collection("customer_repository")
@DropIndexesOnStart
public interface CustomerRepository extends Repository<Customer, UUID> {
}
Last updated