This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

Aria LIMIT clause performance

Does MariaDB / Aria storage engine improve upon the poor performance of MySQL's LIMIT clause execution? I page through 3MM row recordsets sequentially, and fetching 1000 row sets after a few hundred thousand becomes very slow.

Thanks!

Answer

Can you please elaborate?

  • Which MySQL version on which platform are you using?
  • What do you mean by 3MM row recordset (I guess 3 million rows).
  • What do you mean by "page through"? Can you provide us a SQL statement of that example? I guess you do something like "SELECT field1, field2, field3 FROM t1 LIMIT 200000,205000"
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.