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
After #749/#753, the USA-root date aggregate improved from 2.509s to 0.643s, but /location/usa?past=1 remained 7.336s cold and 5.626s immediately repeated. The remaining archive-render path called FilterAbilities once per public taxonomy, materializing the complete matching ID set before tallying each taxonomy.
The reverted #736 query was additive and joined the broad canonical posts query, adding a 1.384s / 1,097,796-row grouped scan while old scans remained. This change replaces eligible scans and starts from the one-row-per-event date table. Taxonomy constraints use indexed EXISTS; counted assignments group directly with COUNT(DISTINCT ed.post_id).
Safety
hierarchical terms expand through the existing canonical term-taxonomy resolver
direct, child, deep, and multi-term assignments deduplicate exactly
active cross-filters exclude the currently counted taxonomy as before
query mutation detection executes before cache lookup, so warmed rows cannot bypass request constraints
term/query callbacks, short circuits, SQLite/non-MySQL, search, geo, scope tokens, and SQL errors use canonical fallback
only normalized aggregate rows are cached; request-sensitive term objects and exclusion output are rebuilt
Verification
PHP syntax: pass for all changed files
git diff --check: pass
changed-file PHPCS: pass
changed-file PHPStan level 7: pass
independent blocker review: no release-blocking findings
local WordPress PHPUnit unavailable because WP Codebox returned an unparseable recipe payload; hosted MySQL/multisite CI is authoritative
Deep dive: homeboy review audit data-machine-events --changed-since d49f5ff
Artifacts and drill-down
CI results artifact: homeboy-ci-results-data-machine-events-review-audit-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
Observation artifact: homeboy-observations-data-machine-events-review-audit-homeboy-Linux-node24 contains exported Homeboy run history for deeper queries.
Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
ℹ️ Auto-fix: homeboy refactor data-machine-events --path /home/runner/work/data-machine-events/data-machine-events --changed-since d49f5ff --from lint --write
ℹ️ Some issues may require manual fixes
ℹ️ Full options: homeboy self docs commands/lint
Deep dive: homeboy review lint data-machine-events --changed-since d49f5ff
Artifacts and drill-down
CI results artifact: homeboy-ci-results-data-machine-events-review-lint-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
Observation artifact: homeboy-observations-data-machine-events-review-lint-homeboy-Linux-node24 contains exported Homeboy run history for deeper queries.
Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
ℹ️ Ignored a malformed test-failures sidecar (JSON error); the primary run result is preserved. Re-run with --analyze after the extension emits a valid sidecar for failure classification.
ℹ️ To run specific tests: homeboy review test data-machine-events -- --filter=TestName
ℹ️ Auto-fix lint issues: homeboy refactor data-machine-events --from lint --write
ℹ️ Collect coverage: homeboy review test data-machine-events --coverage
ℹ️ Save test baseline: homeboy review test data-machine-events --baseline
ℹ️ Analyze failures: homeboy review test data-machine-events --analyze
ℹ️ Pass args to test runner: homeboy review test -- [args]
ℹ️ Full options: homeboy self docs commands/test
Deep dive: homeboy review test data-machine-events
Artifacts and drill-down
CI results artifact: homeboy-ci-results-data-machine-events-review-test-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
Observation artifact: homeboy-observations-data-machine-events-review-test-homeboy-Linux-node24 contains exported Homeboy run history for deeper queries.
Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Production Context
After #749/#753, the USA-root date aggregate improved from 2.509s to 0.643s, but
/location/usa?past=1remained 7.336s cold and 5.626s immediately repeated. The remaining archive-render path calledFilterAbilitiesonce per public taxonomy, materializing the complete matching ID set before tallying each taxonomy.Why This Does Not Repeat #736
The reverted #736 query was additive and joined the broad canonical posts query, adding a 1.384s / 1,097,796-row grouped scan while old scans remained. This change replaces eligible scans and starts from the one-row-per-event date table. Taxonomy constraints use indexed
EXISTS; counted assignments group directly withCOUNT(DISTINCT ed.post_id).Safety
Verification
git diff --check: passCloses #735