refactor: Consolidate MySQL + MongoDB + Milvus into PostgreSQL + pgvector - #8
Open
doctorrajvanshi wants to merge 1 commit into
Open
doctorrajvanshi wants to merge 1 commit into
doctorrajvanshi wants to merge 1 commit into
Conversation
…ctor Major architectural change to reduce idle RAM from 16GB+ to ~1-2GB: Database Consolidation: - Replace MySQL, MongoDB, Milvus (5 containers) with single PostgreSQL + pgvector - Unified schema: relational tables, JSONB document store, vector embeddings - HNSW indexing for semantic search via pgvector New Files: - scripts/init-postgres.sh: Database initialization with schema and extensions - migrations/001_initial_schema.sql: Complete schema for all tables - migrations/migrate_to_postgres.py: Data migration script - ai-agents/_shared/input_sanitizer.py: Prompt injection defense layer - docker-compose.prod.yml: Production overlay - docker-compose.dev.yml: Development overlay - plumo-cli/: Headless CLI orchestrator - docs/migration-guide.md: Upgrade guide from v1.x to v2.0 Modified Files: - docker-compose.yml: Replaced 5 DB services with PostgreSQL - install.sh, install.ps1: Updated for PostgreSQL secrets - .env.example: Added PostgreSQL configuration - README.md: Updated system requirements (16GB → 2GB) Removed Files: - scripts/mysql-root-secrets-entrypoint.sh - scripts/mongo-secrets-entrypoint.sh - scripts/init-mongo-user.sh - init-privileges.sql Co-Authored-By: Claude <noreply@anthropic.com>
KrishnaFounder
self-requested a review
August 17, 2026 18:38
Member
|
My development team is looking your code.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major architectural refactoring to reduce idle RAM from 16GB+ to ~1-2GB by consolidating three databases into a single PostgreSQL instance with pgvector.
Changes
Database Consolidation
New Files
scripts/init-postgres.sh- Database initialization with schema and extensionsmigrations/001_initial_schema.sql- Complete schema for all tablesmigrations/migrate_to_postgres.py- Data migration scriptai-agents/_shared/input_sanitizer.py- Prompt injection defense layerdocker-compose.prod.yml- Production overlaydocker-compose.dev.yml- Development overlayplumo-cli/- Headless CLI orchestratordocs/migration-guide.md- Upgrade guide from v1.x to v2.0Modified Files
docker-compose.yml- Replaced 5 DB services with PostgreSQLinstall.sh,install.ps1- Updated for PostgreSQL secrets.env.example- Added PostgreSQL configurationREADME.md- Updated system requirements (16GB → 2GB)Removed Files
scripts/mysql-root-secrets-entrypoint.shscripts/mongo-secrets-entrypoint.shscripts/init-mongo-user.shinit-privileges.sqlImpact
Testing
./install.shplumo-cli init && plumo-cli startNotes
docs/migration-guide.mdfor upgrade instructionsCo-Authored-By: Claude noreply@anthropic.com