spring-projects / spring-projects/spring-data-jpa

Query validation significantly slows down application startup [DATAJPA-1370]

Open
#1,690 9 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
3.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Сергей Цыпанов opened DATAJPA-1370 and commented

Having dozens of interfaces extending JpaRepository and several hundreds of methods annotated with @Query it takes application significant type to start up.

I think there could be an option to disable validation e.g. for tests.

Also SimpleJpaQuery::validateQuery can be improved: e.g. we should compute error message only if necessary


2 votes, 4 watchers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.