Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Meta does not support property resolution #4808

Open
gbaso opened this issue Oct 11, 2024 · 1 comment
Open

@Meta does not support property resolution #4808

gbaso opened this issue Oct 11, 2024 · 1 comment
Labels
has: breaking-change An issue that is associated with a breaking change. status: pending-design-work Needs design work before any code can be developed status: waiting-for-triage An issue we've not yet triaged theme: MongoDB 5.0

Comments

@gbaso
Copy link

gbaso commented Oct 11, 2024

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 11, 2024
@mp911de mp911de added status: pending-design-work Needs design work before any code can be developed theme: MongoDB 5.0 has: breaking-change An issue that is associated with a breaking change. labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: breaking-change An issue that is associated with a breaking change. status: pending-design-work Needs design work before any code can be developed status: waiting-for-triage An issue we've not yet triaged theme: MongoDB 5.0
Projects
None yet
Development

No branches or pull requests

3 participants