Skip to content

Unhelpful warning about hibernate.jdbc.fetch_size logged by Hibernate ORM #50129

Description

@Sanne

Description

On boot the Hibernate extension is booting the following warning:

WARN  [org.hib.orm.jdbc] (JPA Startup Thread) HHH100123: Low default JDBC fetch size: 10 (consider setting 'hibernate.jdbc.fetch_size')

This is not very helpful as it doesn't suggest how to configure this property in Quarkus. The dev-console offers several flavours of properties related to "fetch", but it then turns out some are deprecated.

It took me to have to peek into the sources to figure that it needs to be:
quarkus.hibernate-orm.jdbc.statement-fetch-size= .

Implementation ideas

We should either set this automatically, or if the warning is captured it should provide a solution which is more helpful in the context of Quarkus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions