- Analyzed MySQL slow query logs to find the exact queries slowing down obituary pages.
- Added targeted composite indexes on post IDs, dates, and approval status, replacing full table scans with fast index lookups.
Case study
Funeral Home Condolence Archive
Database optimization for a 200,000+ entry condolence archive
What we did
Custom PHP development, database query refactoring, MySQL indexing, server tuning
Industry
Funeral services
Location
Southwestern Ontario
Key result
Zero server timeouts and a 96.5% faster page load
Summary
A regional funeral services group in Southwestern Ontario was facing critical performance problems on its website. With an archive of more than 200,000 online condolence entries, page load times had grown past 15 seconds and the database regularly timed out during peak obituary traffic. Vertex Digital refactored the database architecture, rewrote the SQL queries, and added object caching, eliminating server timeouts completely.
Results
Measurable results
0.45s
Page execution time, down from 12 to 18 seconds
96.5%
Reduction in page load time
<12%
Average database CPU load, down from 100% spikes
0
Gateway timeouts since the fix
The challenge
Traffic spikes that brought the website down when families needed it most
Obituary pages see sudden, heavy traffic when notices are shared on social media. The legacy database structure could not keep up.
01
Unindexed database queries
Condolence entries lacked targeted MySQL indexes, forcing full scans of 200,000+ rows on every page load.
02
504 gateway timeouts
When many visitors viewed obituaries at once, database CPU locked at 100% and the server stopped responding.
03
No caching
Every page view triggered dozens of uncached queries to fetch the same condolence lists.
04
Mobile freezes
Visitors on smartphones experienced long delays while obituary pages rendered.
Our approach
The strategy and technical solution
A precise database and code-level refactoring pass, instead of an expensive server upgrade.
01
Schema optimization and custom indexing
02
Custom SQL query refactoring
- Rewrote WP_Query calls that were retrieving far more data than needed.
- Replaced heavy JOIN operations with lightweight queries that fetch only the required fields.
03
Persistent object caching
- Configured Redis persistent object caching at the server level.
- Cached condolence lists and obituary data so repeat views are served from memory without hitting the database.
04
Asynchronous condolence loading
- AJAX lazy loading and pagination for long condolence archives, so the obituary text and photo appear instantly while messages load in the background.
The outcome
A fast, stable website for families and their communities
Careful database engineering solved a serious performance problem quickly and permanently, without the cost of new server hardware. Obituary pages now load in under half a second, even during heavy traffic, and the site has stayed stable ever since.
Facing slow page speeds or database bottlenecks?
A technical code and database audit will pinpoint exactly what is slowing your site down.
Call (519) 312-2749 or email brian@vertexdigitalco.com