First Orders Without Resorting
A feed takes the first 10 rows from orders in created_at order, but without the right index it has to reorder the full table each time. Add an index on created_at.
Speed this query up with an index
SELECT * FROM orders ORDER BY created_at LIMIT 10
Pelkkä CREATE/ALTER/DROP — lopussa ei tarvita SELECT-lausetta.
Kirjaudu sisään nähdäksesi palautushistorian
Kirjaudu sisäänKirjaudu sisään käyttääksesi tekoälymentoria
Kirjaudu sisään