You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change introduced in Spring JPA 2.7.13 changes LIKE queries to CONCAT($1, '%') format. However Postgres cannot use table indexes when right-hand side clause has a function (like CONCAT), so invoking query containing CONCAT will perform very poorly on large tables.
As suggested fix this optimization should be optional (e.g. via Spring JPA property setting), and can default to be active. But it should be possible to return to 2.7.12 version of LIKE query.
The text was updated successfully, but these errors were encountered:
This change introduced in Spring JPA 2.7.13 changes LIKE queries to CONCAT($1, '%') format. However Postgres cannot use table indexes when right-hand side clause has a function (like CONCAT), so invoking query containing CONCAT will perform very poorly on large tables.
As suggested fix this optimization should be optional (e.g. via Spring JPA property setting), and can default to be active. But it should be possible to return to 2.7.12 version of LIKE query.
The text was updated successfully, but these errors were encountered: