Prompt
What should I use for read/write access to bookkeeping data?
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
For bookkeeping data, the best choice is usually a relational database with a transactional model.
Recommended options
- PostgreSQL — best default choice for most bookkeeping systems
- MySQL/MariaDB — also fine, but PostgreSQL is often preferred for data integrity and richer features
- SQLite — okay for a single-user or embedded/local app, but not ideal for multi-user concurrent bookkeeping
Why relational DBs fit bookkeeping
Bookkeeping needs:
- ACID transactions so debits/credits stay consistent
- Strong consistency to avoid partial updates
- Constraints to enforce rules like balanced entries
- Auditability for tracking changes
- Concurrent read/write access safely
Access pattern
Use:
- Read-write access through your application/backend
- Parameterized SQL queries or an ORM
- Transaction boundaries around each accounting operation
Avoid:
- Direct file-based storage like CSV/JSON for active bookkeeping
- Non-transactional databases for the core ledger
Good architecture
- Primary database: PostgreSQL
- Read replicas if you need heavy reporting
- Application layer handles business rules
- Append-only ledger tables for audit trail, with corrections via reversing entries rather than overwriting
If you tell me your setup — e.g. desktop app, web app, single user, multi-user, cloud, or local-only — I can suggest the best specific storage/access approach.