Step 1 / 12Setup
The dashboard takes 2 seconds
Your "My orders" page shows the 20 latest orders of one user. A year ago it was instant. Now the orders table has 5 million rows and the page takes about 2 seconds.
The code did not change. The data did. Let's see what the database is doing.
“The query got slower only because the table grew, so I would look at how the database finds the rows.”
←→ step·R restart·Space pause