India’s Leading Domain & Web Hosting Provider
Clinic network's EMR on AlloyDB serves doctors and reports from one database
Multi-specialty clinic network, 64 clinics, 4,200 consultations a day · Southern and Western India · 8 weeks
As-is situation
The network's EMR, built on PostgreSQL 11, ran on a pair of physical servers in a Bengaluru colocation facility with streaming replication to a standby in the same cage. The database held 3.4 TB of encounters, prescriptions, lab results and scanned documents metadata. Morning OPD hours pushed p95 chart-open time to 3.8 seconds, and the monthly MIS and insurance-claims reports had to run at night because they locked up the system. PostgreSQL 11 was past community end of life, and a power incident at the colocation site had caused a three-hour outage across all clinics.
- Chart-open p95 of 3.8 seconds during morning OPD peaks
- Analytical reports restricted to night windows because they slowed clinical workflows
- PostgreSQL 11 beyond community support with no in-place upgrade path tested
- Single-site dependency, with one three-hour outage affecting all 64 clinics
Selected Google Cloud services and architecture
NTSPL migrated the EMR to AlloyDB for PostgreSQL in asia-south1 using Database Migration Service with continuous replication from the colocation primary over Cloud VPN. The primary runs regional HA, and a two-node read pool serves the MIS dashboards and claims extraction, with the columnar engine populated for encounter and billing tables recommended by query statistics. A secondary cluster in asia-south2 provides regional recovery. Applications connect through the AlloyDB Auth Proxy with IAM database authentication, and audit logging covers every access to patient records for DPDP Act and ABDM consent auditing.
Implementation approach
Measured results
Operational improvements
- MIS and claims teams run reports during working hours without affecting doctors
- Database patching and minor upgrades are handled by AlloyDB maintenance windows instead of night-shift engineers
- Patient-record access audits are produced from Cloud Audit Logs on request instead of from application logs
Cost considerations
AlloyDB's primary and read pool are covered by a one-year committed use discount sized to OPD-hour peaks. The secondary cluster in Delhi was kept at a smaller shape, accepting a slower post-failover performance in exchange for lower standing cost. Moving reporting off a separate replica server removed a planned INR 12 lakh hardware purchase.
Return on investment
Retiring colocation hardware and the annual support contract saves an indicative INR 28-35 lakh a year, while faster claims processing shortened insurer payment cycles by around six days, improving working capital by an estimated INR 1-1.5 crore across the network.