trypost/database
Paulo Castellano a129b6b5cd Denormalize automation trigger_type into an indexed column
The scheduler command ran every minute and loaded all active automations,
then filtered by trigger_type in PHP because that value lived buried in the
nodes JSON array — effectively a full-table scan plus a JSON decode per row
each minute, discarding every non-schedule automation.

Derive trigger_type into a real, indexed column on save (recomputed in the
existing saving() hook so it can never drift from nodes) and filter on it in
SQL. Applies to both the schedule firer and the post-trigger dispatcher.
2026-06-13 15:26:54 -03:00
..
factories Structure brand voice and make generated copy platform-aware 2026-06-12 17:09:39 -03:00
migrations Denormalize automation trigger_type into an indexed column 2026-06-13 15:26:54 -03:00
seeders feat(auth): self-hosted registration gate + admin seeder (closes #46) 2026-05-19 11:45:16 -03:00
.gitignore chore: first commit 2026-01-14 22:13:44 -03:00