You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/02/20 14:56:35 UTC

[GH] (grails-core/fix/exists-cross-join): Workflow run "CI" is working again!

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

Head commit for run:
52f1180917d94929de61d623f29c6018a6e22a57 / James Fredley <ja...@users.noreply.github.com>
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 <Cl...@Claude.ai>

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

With regards,
GitHub Actions via GitBox