Database optimisation: why a site slows down during sales and how to fix it
How we find bottlenecks in PostgreSQL under real load: query and index audit, schema refactoring, Redis caching, replication, backups and monitoring.
"The site slows to a crawl during promotions — checkout breaks, orders get lost."
A slow database under peak load is a direct revenue leak. During a sale or Black Friday, slow queries pile up, timeouts appear, checkout breaks — and those shoppers don't come back.
What we do
- Database audit: table structure, indexes, profiling slow queries under real production load, not on a test bench.
- Schema refactoring: normalisation, index optimisation, partitioning large tables, archiving stale data.
- Rewriting slow queries and adding a Redis caching layer for the most-read data: catalogue, prices, availability. Eliminating N+1 queries.
- Master-replica replication: separating reads from writes so the catalogue doesn't slow down because of checkouts.
- Daily backups with automatic verification that you can actually restore from them.
- Monitoring: alerts for server overload, abnormal table growth and long-running queries.
What you get
- Faster catalogue, search and checkout pages — exactly where traffic is highest.
- A caching layer for the most frequent queries.
- Replication in production.
- A monitoring dashboard and an incident runbook.
How to tell if this is your problem
If the site works fine on normal days but crashes or slows sharply during email campaigns and sales, the bottleneck is almost certainly in the database or its configuration. A quick check: look at server response time on catalogue pages at peak hours. Continuous site monitoring shows such dips automatically.
Typical scope — about 400 hours.