The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/fix/exists-cross-join has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
52f1180917d94929de61d623f29c6018a6e22a57 / James Fredley 
<[email protected]>
Fix exists() cross-join caused by duplicate CriteriaQuery root

AbstractHibernateGormStaticApi.exists() called criteriaQuery.from() twice,
creating a second query root that produced a cartesian product. The generated
SQL selected count(alias0) from Table alias1, Table alias0 where alias1.id=?,
scanning the entire table for every matching row instead of a simple count.

Reuse the existing queryRoot variable for the count select expression.

Fixes #14334

Assisted-by: Claude Code <[email protected]>

Report URL: https://github.com/apache/grails-core/actions/runs/22205994591

With regards,
GitHub Actions via GitBox

Reply via email to