-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
has: breaking-changeAn issue that is associated with a breaking change.An issue that is associated with a breaking change.status: pending-design-workNeeds design work before any code can be developedNeeds design work before any code can be developedstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triagedtheme: MongoDB 5.0
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.
Metadata
Metadata
Assignees
Labels
has: breaking-changeAn issue that is associated with a breaking change.An issue that is associated with a breaking change.status: pending-design-workNeeds design work before any code can be developedNeeds design work before any code can be developedstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triagedtheme: MongoDB 5.0