mem: split pgstore/store.go and sqlitestore/store.go into logical files #232
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
pgstore/store.go— 987 linessqlitestore/store.go— 975 linesBoth files handle reads, writes, snapshots, raw events, upcasting, and schema setup in one monolith. This makes:
Solution
Split each store.go into:
store.go— constructor, options, core typesread.go— ReadStream, ReadFrom, load helperswrite.go— Append, AppendWithOptionssnapshot.go— Save/LoadSnapshotraw.go— LoadRawEventsscan.go— shared scanning helpers (see #227)No API changes. Pure file reorganization.
Pillar: Memory Efficiency (cognitive), Developer Experience