maxxcarl/memory-storage / context-tree /infrastructure /infrastructure-postgresql-is-our-main-database.md
maxxcarl's picture
|
download
raw
787 Bytes
---
id: infrastructure-postgresql-is-our-main-database
title: PostgreSQL is our main database
topic: infrastructure
type: decision
importance: 5
facts:
- PostgreSQL is the primary database.
- pgBouncer is used for connection pooling.
- The setup is intended to support 1000+ concurrent connections efficiently.
- 'This choice affects schema design, data access, and integrations.'
updatedAt: '2026-05-26T19:51:16.287Z'
---
**Why**:
- Single source of truth for app data.
- Connection pooling helps maintain performance and scalability under high concurrency.
**Next Steps**:
- Use PostgreSQL for new data models.
- Route database access through pgBouncer.
- Avoid introducing another primary database.
- Update future implementation notes to reference PostgreSQL and pgBouncer.

Xet Storage Details

Size:
787 Bytes
·
Xet hash:
e4d28081cbe44133041e392ac03095fe43f852e4cfaec1b9c08c5dfda4a6f6ce

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.