You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
ADR-0002 — PostgreSQL untuk Aplikasi Baru
Tanggal: 2025-xx-xx Status: Accepted
Konteks
Perlu memilih database engine untuk aplikasi internal baru (geonet-console). Sudah ada SQL Server 2019 di 10.100.1.25 untuk legacy/GIS.
Keputusan
PostgreSQL sebagai database default untuk aplikasi baru. SQL Server hanya untuk legacy atau GIS yang sudah terikat.
Alasan
- Open source, tidak ada biaya lisensi
- Support pgvector (dibutuhkan Fase 4 Ollama AI search)
- Laravel Eloquent support penuh untuk PostgreSQL
- Docker container mudah —
postgres:15image resmi - JSON/JSONB support untuk metadata fleksibel
Alternatif Ditolak
- SQL Server: Berlisensi mahal, tidak support pgvector, sudah dipakai untuk GIS legacy
- MySQL: Tidak support pgvector, kurang fitur JSON vs PostgreSQL
- SQLite: Tidak cocok untuk multi-container atau concurrency production
Konsekuensi
DB_CONNECTION=pgsqlwajib dicompose.yaml— jangan ubah ke sqlite- Legacy SQL Server tetap dipertahankan untuk database registry read-only
- Nama DB saat ini masih
databaselist_app(nama legacy, rencana rename di Fase 3)