- August 12–22: Online Training (EU shift)
- Enrollment
- FOSDEM Impressions
- June 8–18: Online Training (US shift)
- November 11-12 in Frankfurt am Main
- Online-Training in July and August
- Oracle + PostgreSQL
- Party time
- PostgreSQL Performance Event
- SQL Server Performance Kurs in Stuttgart
- SQL Server performance training in London
- Shipping Terms
- The two top performance problems caused by ORM tools
- Top Tweets January 2013
- Training Survey
- Use The Index, Luke
- Ask
- Consulting
2012-01-02MySQL Example Scripts for “Partial Results”
This section contains the create and insert statements to run the examples from Chapter 7, “Partial Results” in a MySQL database.
Querying Top-N Rows
An indexed Top-N query doesn’t show a “filesort” operation in the Extras column:
SELECT *
FROM sales
ORDER BY sale_date DESC
LIMIT 10;
+----+-------+-------+-------------+--------+-------+ | id | table | type | key | rows | Extra | +----+-------+-------+-------------+--------+-------+ | 1 | sales | index | sales_dt_pr | 836092 | | +----+-------+-------+-------------+--------+-------+
Stay connected:
RSS Feed
Like on Facebook
Follow me on Twitter
Share at Google+
RSS FeedFlattr this! Follow me on TwitterShare at Google+Like on Facebook