Marc
6fd9cdea1b
Simplify: O2M batch, domain dedup, db.go split, constants
Performance:
- O2M formatO2MFields: N+1 → single batched query per O2M field
(collect parent IDs, WHERE inverse IN (...), group by parent)
Code dedup:
- domain.go compileSimpleCondition: 80 lines → 12 lines by delegating
to compileQualifiedCondition (eliminates duplicate operator handling)
- db.go SeedWithSetup: 170-line monolith → 5 focused sub-functions
(seedCurrencyAndCountry, seedCompanyAndAdmin, seedJournalsAndSequences,
seedChartOfAccounts, resetSequences)
Quality:
- Magic numbers (80, 200, 8) replaced with named constants
- Net -34 lines
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 13:11:37 +02:00
..
2026-04-03 01:03:47 +02:00
2026-03-31 01:45:09 +02:00
2026-03-31 01:45:09 +02:00
2026-03-31 01:45:09 +02:00
2026-03-31 23:09:12 +02:00
2026-04-02 19:26:08 +02:00
2026-04-02 19:26:08 +02:00
2026-04-03 01:03:47 +02:00
2026-03-31 01:45:09 +02:00
2026-04-01 02:36:48 +02:00
2026-04-01 01:31:37 +02:00
2026-04-02 20:11:45 +02:00
2026-04-03 13:11:37 +02:00
2026-04-02 19:26:08 +02:00
2026-03-31 23:38:16 +02:00
2026-04-01 00:47:14 +02:00
2026-04-02 20:11:45 +02:00
2026-04-01 00:25:29 +02:00
2026-03-31 23:16:26 +02:00
2026-04-01 00:15:54 +02:00
2026-04-02 19:26:08 +02:00
2026-04-03 01:03:47 +02:00
2026-04-03 13:11:37 +02:00
2026-04-02 20:11:45 +02:00