Add support for in_clause_parameter_padding when using multiLoad

Description

While the hibernate.query.in_clause_parameter_padding optimization works fine for JPQL and Criteria API, if we use a multiLoad request:

Hibernate will still use 3 arguments instead of the closest upper power-of-two integer:

For more details, check out this article as well.

A replicating test case is available in my High-Performance Java Persistence GitHub repository.

Environment

None

Status

Assignee

Unassigned

Reporter

Vlad Mihalcea

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure