India’s Leading Domain & Web Hosting Provider
Chit fund company moves auction and payout logic from Oracle 11g to Azure PostgreSQL
Registered chit fund company with 210 branches in Andhra Pradesh and Telangana, 6.5 lakh subscribers · Azure Central India (Pune), read replica in South India (Chennai) · 12 weeks
As-is situation
About 38,000 chit groups ran on Oracle 11g Standard Edition with a Java desktop front end used in every branch. Auctions, dividend distribution and prized-subscriber payouts were computed by 420 PL/SQL procedures, documented only in a retired developer's notes. Oracle 11g had long been out of support, and the Windows Server 2012 R2 hosts lost security updates in October 2026. On auction days, the 5th and 20th of each month, branch staff waited up to 40 seconds for subscriber ledgers, and the statutory auditor had flagged the unsupported stack twice.
- Oracle 11g on Windows Server 2012 R2 hosts with no security updates
- Subscriber ledger queries of up to 40 seconds on auction days
- Dividend and payout rules in 420 PL/SQL procedures with no tests
Approach, tools and architecture
NTSPL converted schema and code to Azure Database for PostgreSQL flexible server using Ora2Pg, which rated the database medium complexity; 61 procedures needed manual work, mainly CONNECT BY hierarchies for group membership and DBMS_OUTPUT-based reports. Dividend and payout rules were rewritten in PL/pgSQL with tests built from 24 months of auction results. The Java front end switched to the PostgreSQL JDBC driver, with 140 embedded SQL statements rewritten. Data moved in a full load over a Sunday between auction dates. Zone-redundant HA protects the primary, and a South India read replica serves branch reports.
Implementation approach
Measured results
Operational improvements
- Payout rules now have automated tests that run before every change
- Branch reports run on the South India replica, keeping auction-day load off the primary
Cost considerations
Services cost INR 42 lakh over 12 weeks. Run cost of about INR 1.75 lakh a month covers the zone-redundant flexible server, the cross-region read replica in South India and automated backups retained for the maximum 35 days.
Return on investment
Annual savings of INR 17 lakh repay the services cost in about two and a half years. The deciding benefit was removing unsupported software from the system that computes subscriber payouts, closing the auditor's repeat finding.