Compute all stat dimensions and both grains in one GROUPING SETS query so each sync pass scans the source table once instead of eight times. Hourly passes now only recompute the current ISO week; a daily full pass refreshes the whole display window. Restarted daemons resume the hourly cadence from the last completed sync instead of immediately re-running a pass, and the workgroup kills any query scanning more than 2 TB. |
||
|---|---|---|
| .. | ||
| app | ||
| core | ||
| server | ||
| AGENTS.md | ||
| README.md | ||
OpenCode Stats
Stats is a separate site from the console. Runtime, database, and domain services live in core; the SolidStart website lives in app; deployable Lambda entrypoints live in function.
Packages
app: SolidStart frontend/site.core: Effect services, app config, Drizzle schema/migrations, and stats domains.function: Lambda handlers that call intocoreservices.
Commands
bun run dev:statsfrom the repo root starts the SolidStart app.bun run --cwd packages/stats/app typechecktypechecks the site.bun run --cwd packages/stats/core typechecktypechecks the Effect/database package.bun run --cwd packages/stats/function typechecktypechecks Lambda entrypoints.