Reuse the same Query instance when executing multiple queries during entity loading

Description

We had to disable this optimization as part of HSEARCH-4150, to work around HHH-14439.

Environment

None

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major