question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support hibernate.max_fetch_depth property

See original GitHub issue

Hibernate has a configuration option called max_fetch_depth (see AvailableSettings.MAX_FETCH_DEPTH and https://docs.jboss.org/hibernate/stable/core.old/reference/en/html/configuration-optional.html). This option is currently not “exposed” by Quarkus as a config property and can thus not be set in application.properties and only through persistence.xml.

I think it would make sense if Quarkus could provide a corresponding quarkus-hibernate-orm.max-fetch-depth property. (Or should it be quarkus-hibernate-orm.query.max-fetch-depth? If yes, should quarkus.hibernate-orm.batch-fetch-size be moved?)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gavinkingcommented, Aug 21, 2020

Suggestion: add a new category hibernate-orm.fetch for stuff like this and the batch fetch batch size.

1reaction
knutwannhedencommented, Aug 21, 2020

I will try to create a PR for max-fetch-depth then and create a separate issue for the moving of batch-fetch-size.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Hibernate hibernate.max_fetch_depth and ...
This configuration property determines how many associations hibernate will traverse by join when fetching data. default_batch_fetch_size: This ...
Read more >
3.4. Optional configuration properties
hibernate.max_fetch_depth, Set a maximum "depth" for the outer join fetch tree for single-ended associations (one-to-one, many-to-one). A 0 disables default ...
Read more >
hibernate.properties
hibernate.max_fetch_depth. Description. Sets a maximum depth for the outer join fetch tree for single-ended associations (one-to-one, many-to-one).
Read more >
how to force join (overriding MaxFetchDepth=0)
Optional configu ration properties - hibernate.max_fetch_depth, it says: Set a maximum "depth" for the outer join fetch tree for ...
Read more >
Hibernate - TIBCO Product Documentation
Properties, N, Y, N, Hibernate configuration properties: Format SQL Enabled; Default Schema; Default Catalog; Max Fetch Depth; Default Batch Fetch Size ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found