The optimization of MySQL is very important. The other most commonly used and most need to optimize is limit. MySQL's limit brings great convenience to paging, but when the amount of data is large, limit performance drops sharply. Same as 10
Experience on SQL optimization with excessive offset during mysql paging, mysqloffset
Problems Found
When we display the content in a list, we will inevitably encounter paging problems, because the number of content in the list may be large, but the
A possible optimization method for mysqllimit large offset bitsCN.com
A possible optimization method for mysql limit large offset
When the mysql limit statement has a large amount of data, the offset After limit is too large, and the first query
When a website reaches a certain scale, various website optimizations are required. In the optimization of websites, database optimization is the most important. Optimization of limit statements in mysql databases. Generally, limit is used on pages
First explain the MySQL version:Mysql> select version ();+-----------+| Version () |+-----------+| 5.7.17 |+-----------+1 row in Set (0.00 sec)Table structure:mysql> desc test;+--------+---------------------+------+-----+---------+----------------+|
This article was also published in https://github.com/zhangyachen/zhangyachen.github.io/issues/117First explain the MySQL version:select version();+-----------+| version() |+-----------+5.7.17 |+-----------+1rowinset (0.00 sec)Table
Concrete Example 1. PHP Server ComponentsFor beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the time spent by developers in the tedious configuration
MySQL supports the syntax for limit and offset. This article is mainly used for memo We set up a table for the experiment: MySQL>createtable limit_offset ( int Primarykey, varchar(+) 0 rows affected (0.01 sec) Insert data: INSERT
Background requirements:1) Compile and install a MySQL database of version 5.5.x and above on a newly purchased server, and store all configuration files and data in/opt/mysql, it facilitates fast migration, replication, and overall backup in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.