Purple Style Labs Optimized Its Database Layer to Scale Luxury E-Commerce and Save $30,000 ARR

Overview

To support their expanding retail footprint and transaction volumes, PSL required a database back-end capable of handling intense peak workloads, such as sales events and seasonal cart additions. Mydbops partnered with PSL to analyze their bottlenecks, upgrade their outdated database systems, and implement a scalable database routing architecture that lowered infrastructure costs while maintaining high platform performance.
$30000
ARR Saved
Reduced DB infrastructure and maintenance spend .
75%
Footprint Reduction
Hardware instance requirements were reduced.
5X
Speedup
Average SQL response times improved five-fold.
Zero
User Impact
Migrated to a modern setup with zero service disruption.
MariaDB
Consulting Services

About

Purple Style Labs (PSL) is one of India's premier luxury fashion houses, operating the highly successful multi-designer platforms Pernia's Pop-Up Shop and The Stylist. The company has scaled to an annual operating revenue of approximately ₹490–₹500 crore (around $60 million USD). PSL bridges online and offline retail with a robust digital platform and more than 15 luxury experience centers across major Indian metros and international fashion hubs like London. Catering to high-end consumers, the brand processes transactions with an average order value (AOV) exceeding ₹56,000.
★★★★★
Deployment Type
Database Stack
Outcome
Cloud-Based Deployment
MariaDB 10.6, ProxySQL
$30,000 ARR Saved via Infrastructure Optimization
Deployment Type
Cloud-Based Deployment
Database Stack
MariaDB 10.6, ProxySQL
Outcome
$30,000 ARR Saved via Infrastructure Optimization

Business Challenges

Overview
Purple Style Labs relied on a database infrastructure that struggled to support high-value retail transactions during peak traffic. Slow response times and replication lag during checkout threatened to disrupt the customer experience, while oversized hardware drove up annual operational expenses.
  • Severe Database Lag during Checkout: High transaction volumes caused database slowness, particularly during cart additions and checkouts, which threatened to disrupt high-value sales.
  • Stale Data and Inventory Discrepancies: Sluggish database replication meant the front-end application occasionally served outdated data to buyers, leading to inventory inconsistencies.
  • Outdated Legacy Systems: The platform was running on an obsolete version of MariaDB (10.1), which lacked the performance optimization features needed for modern workloads.
  • Escalated Operating Costs: Heavy database resource consumption and oversized servers drove high ongoing maintenance costs.
  • Scalability and Backup Risks: The infrastructure struggled with read-scalability during peak traffic and lacked a rapid, reliable database backup and recovery process.
Goals
The key objectives the client was aiming to achieve:

Resolve database latency to protect the buyer shopping experience.

Upgrade the outdated database engine to a modern, supported version without taking the e-commerce store offline.

Introduce dynamic load distribution to resolve read bottleneck issues.

Lower infrastructure costs by right-sizing server instances.

Establish a rapid, secure database backup and recovery pipeline.

Risks if Not Addressed
If left unresolved, these challenges posed serious risks

Risks & Impact if Not Addressed

Performance Issues

Without resolving replication lag and fragmented tables, query performance would continue to degrade, leading to a frustrating customer experience during peak hours.

Business Continuity Risks

Non-standardized backup policies increased the risk of data loss and prolonged outages, potentially disrupting thousands of orders in real-time.

Revenue Loss

Poor performance and downtime during peak times directly impacted Swiggy’s ability to fulfill customer demand, resulting in lost revenue and dissatisfied users.

Escalating Costs

Continued reliance on oversized, under-optimized infrastructure would lead to unnecessary monthly spend, straining the company’s profitability.

Developer Inefficiency

Lack of a stable and scalable database foundation meant developers spent significant time firefighting performance issues instead of innovating on features.

Performance Issues: Replication lag and fragmentation slow order searches and transactions.
Business Continuity Risks: Non-standardized backups mean longer recovery times and higher data-loss risk.
Revenue Loss: Slow page loads or timeouts during peak hours lead to failed checkouts.
Escalating Costs: Over provisioned, under-optimized servers strain profitability
Developer Inefficiency: Engineers spend more time firefighting than building new features
Goals
The key objectives the client was aiming to achieve:
→   
[Goal 1]
→   
[Goal 1]
→   
[Goal 1]

Solution Provided by Mydbops

Mydbops evaluated the legacy system to resolve performance and disk bottlenecks. By upgrading the database version, optimizing query structures, distributing the workload, and right-sizing the hardware, Mydbops established a faster and more cost-efficient database layer with zero disruption to the retail platform.

Query and Workflow Analysis:

Analyzed transaction-heavy database operations, identifying specific IO-bound loads where the workload hit physical disk limitations.

Database State Transition

Original Setup (MariaDB 10.1)
  • Disk Bottlenecks: Intense query loads continuously hit physical hardware limitations.
  • Replication Lag: Slow replication meant the application occasionally served outdated data.
  • Oversized Infrastructure: Inefficient setups required heavy database server resources.
Optimized Architecture (MariaDB 10.6)
  • ProxySQL Middleware: Intelligently balances transaction paths, resolving database latency.
  • Modern Execution: Leverages histograms and virtual columns to optimize query processes.
  • Right-Sized Instances: Decreased server resource footprints by 75%, saving $30,000 ARR.

Parallel Migration Path:

Designed and configured a parallel MariaDB 10.6 staging environment, enabling a low-risk database upgrade with zero downtime.

Performance Optimization:

Configured advanced database features within MariaDB 10.6, such as Histograms and Virtual Columns, to optimize search and checkout queries.

Database Load Balancing:

Implemented ProxySQL as an intelligent middleware layer to route and distribute read traffic evenly across database servers, resolving read capacity bottlenecks.

Open-Source Backup Architecture:

Deployed Mariabackup to automate and speed up backup and recovery operations, protecting business data without commercial licensing overhead.

Hardware Right-Sizing:

Audited performance metrics to scale down over-provisioned infrastructure safely.

High-Availability Database Architecture

Dynamic transaction balancing routed through middleware layers
Client Application Layer
Pernia's Pop-Up Shop / The Stylist
ProxySQL Middleware
Dynamic Routing & Load Balancing
(Writes) (Reads)
Primary MariaDB 10.6
Transaction Database & Mariabackup
Replica MariaDB 10.6
Scalable Read Cluster / Live Querying

Results and Impact

Key Outcomes

✅ Faster Checkout Conversions: 

Improving the average SQL query response time by 5X helped buyers complete transactions quickly and reduced cart abandonment.

Average Database Response Time

Speed of critical transaction queries during checkout peaks
Original Database (MariaDB 10.1) Baseline Speed (100% Latency)
Baseline Processing
Optimized Database (MariaDB 10.6) 5X Faster (20% Latency)
Optimized Execution

✅ Reliable Real-Time Data: 

Eliminating replication slowness ensured that customers saw real-time, accurate product availability and pricing information.

✅ Significant Infrastructure Savings: 

Right-sizing reduced the server instance size to 1/4th of its original capacity, decreasing database resource consumption and yielding$30,000 ARR in savings.

Server Instance Optimization

Resource allocation and capacity footprint scaling from 4 servers to 1
Baseline Footprint (100% Sizing)
🖳 Node 1
🖳 Node 2
🖳 Node 3
🖳 Node 4
Right-Sized Footprint (25% Sizing)
🖳 Node 1
Inactive
Inactive
Inactive

✅ Efficient Business Operations: 

Internal teams generated inventory and sales reports much faster using the optimized SQL capabilities in MariaDB 10.6.

✅ Continuous Business Continuity: 

The platform transitioned to the new architecture without operational downtime and remains supported under Mydbops' 24/7 proactive monitoring.

The Journey of Scaling Luxury Retail

Behind every high-value purchase on a luxury fashion platform lies a complex sequence of database transactions. When a customer adds an exclusive designer piece to their cart, multiple queries must execute in milliseconds—verifying stock, calculating logistics, and updating pricing across multiple physical and digital locations. For Purple Style Labs, database lag was more than a technical issue; it was a barrier to delivering the high-end, premium experience their clientele expects.

By addressing the underlying disk limitations and database routing inefficiencies, the infrastructure was transformed into a lean, fast, and highly responsive system. The physical hardware footprint was reduced by 75% while achieving five times faster query performance. This transition demonstrates that database scalability does not require over-spending on massive hardware setups; instead, targeted optimization and clean architecture can deliver both high performance and notable cost savings.

Connect with Mydbops

Scaling a retail brand requires a digital foundation that is as refined and reliable as the products you sell. If database lag or rising infrastructure costs are slowing down your business growth, contact our database experts to discuss how we can optimize your systems. Let's build a database strategy designed to scale with your business.

‍Talk to a Mydbops Expert today

Need Expert Database Solutions?

Talk to a Database Expert Today!

Database solutions are provided by mydbops expert team
Mydbops set up High Availability (HA) Solutions with InnoDB or Percona Clusters, ensuring continuous uptime and fault tolerance.
Thank You!
We’ve got your request, our expert team will be contacting you shortly.
Oops! Something went wrong while submitting the form.
Download Case Study