EmergencyEMERGENCY? Get 24/7 Help Now!

Slides from Zurich talk are now posted

 | November 25, 2007 |  Posted In: Events and Announcements

PREVIOUS POST
NEXT POST

I have now posted slides for the talk I gave in Zurich last week in MySQL Performance Presentations section.

That was fun talk and fun trip in general. Thank you for inviting.

PREVIOUS POST
NEXT POST
Peter Zaitsev

Peter managed the High Performance Group within MySQL until 2006, when he founded Percona. Peter has a Master's Degree in Computer Science and is an expert in database kernels, computer hardware, and application scaling.

6 Comments

  • Hi, I’ve read the slides and have some questions about the LIMIT.

    As you said in “More about LIMIT”:
    Protect your application from large limits
    – People may not go to page 500 but search engine bots
    well may do.

    If I really need to do “select a,b,c from table where key=’val’ limit 1000,10” for paging, is there any way to avoid slow query?

  • Pahud,

    In this case query will need to traverse these 1000 rows and discard them unless you have static data and you can pre-create positions for all key lookups.

    You can speed things up by using covering index – have key on (key,id) and fetch id only initially when fetch data for just those 10 rows you will display. This can be done as extra query (good if you have something like memcache) or you can have it done as a single query.

  • Hi Peter,

    Although I think I understand the performance issue of using large limits, I don’t completely understand the solution you propose.. I think I have read about this somewhere.. cant really recall.. it will be great if you can shed some more light on your solution

    Thanks!

Leave a Reply

 
 

Percona’s widely read Percona Data Performance blog highlights our expertise in enterprise-class software, support, consulting and managed services solutions for both MySQL® and MongoDB® across traditional and cloud-based platforms. The decades of experience represented by our consultants is found daily in numerous and relevant blog posts.

Besides specific database help, the blog also provides notices on upcoming events and webinars.
Want to get weekly updates listing the latest blog posts? Subscribe to our blog now! Submit your email address below and we’ll send you an update every Friday at 1pm ET.

No, thank you. Please do not ask me again.