Our 3-part series on SQL performance optimisations
ohdear.app·3d·
Discuss: Hacker News
🗄️Database Internals
Preview
Report Post

A few weeks ago, we massively improved the performance of the Oh Dear dashboard and website by optimising our SQL queries. We documented everything we learned along the way in a 3-part series - from finding problematic queries, to fixing them with indexes, to preventing regressions with automated testing.

Here’s what each part covers:

Part 1: Finding the right queries to fix #

Before you can optimise anything, you need to know what to optimise. This post covers the tools and techniques we use to identify slow queries: Laravel’s debug bar for local development, MySQL’s slow query log, logging queries that don’t use indexes, inspecting currently running queries, and using pt-query-digest to analyse query patterns. We also cover Larav…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help