Open
Description
The annotation org.springframework.data.mongodb.repository.Meta
is used, among other things, to define a max execution time for the query:
interface MyRepository extends MongoRepository<MyDocument, String> {
@Meta(maxExecutionTimeMs = 10)
Page<MyDocument> findBySomeProperty(String someProperty);
}
However there is currently no attribute that supports spring placeholders and SpEL expressions. As such the execution time limit is not configurable for spring repositories and one must manually write the query with MongoTemplate if configurability is required.