India’s Leading Domain & Web Hosting Provider
Insurance aggregator cuts quote-engine database time 64% before motor renewal season
IRDAI-licensed web aggregator comparing motor and health plans from 24 insurers, about 1.8 lakh quotes a day · Azure Central India (Pune) · 5 weeks
As-is situation
The quote engine stored vehicle, insurer rate tables and quote history in an 80-vCore Azure SQL Database business critical tier. During the March renewal peak, CPU stayed at 92-98% for hours and quote responses rose from 1.2 to 7 seconds, so users abandoned comparisons. The team had raised vCores twice in a year. Nobody on the team reviewed Query Store data. A deployment two months earlier had introduced a parameter-sensitive plan on the rate lookup that read 40 times more pages than before.
- CPU at 92-98% during renewal peaks despite two vCore increases
- Quote response time rising from 1.2 to 7 seconds at peak
- A plan regression on the rate lookup undetected for two months
Approach, tools and architecture
NTSPL's DBA used Query Store to identify that four statements accounted for 71% of CPU. The regressed rate lookup plan was forced to its previous good plan immediately, while developers rewrote the query with an explicit index hint and parameter sniffing fix. Two covering indexes were added after clone testing, and an archive job moved quote history older than 13 months to a separate database. Automatic tuning was enabled for index recommendations in report-only mode, reviewed weekly by the DBA.
Implementation approach
Measured results
Operational improvements
- Plan regressions are caught in the weekly review within days of a release
- The renewal season ran without emergency scaling for the first time
Cost considerations
Reducing from 80 to 48 vCores on the business critical tier cut the largest single line in the Azure bill. The archive database runs on a general purpose tier with lower-cost storage, and is queried only for claims and audit lookups.
Return on investment
The vCore reduction saved roughly ₹5-6 lakh a month, several times the DBA service fee. Faster quotes during renewal season also raised completed comparisons, which is the metric insurers use when paying the aggregator. Payback came in month one.