In the Hibernate User Guide, at example "Example 182. Join Table polymorphic query" there is a note
Polymorphic queries can create Cartesian Products, so caution is advised.
Could someone explain how the Cartesian Products might happen in a such a use case?
It's not a correct statement. I created the HHH-11175 Jira issue, and I'm going to fix it.
I'm going to change that phrase to:
The joined table inheritance polymorphic queries can use several JOINS which might affect performance when fetching a large number of entities.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With