In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to optimize the paging of the mysql order of magnitude data table, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail, people with this need can come to learn, I hope you can gain something.
Limit paging General Scheme select * from yundou_v3.bill_info limit 100Magne20 select * from yundou_v3.bill_info limit 400000 Magne20 select * from yundou_v3.bill_info limit 600000 Die20 select * from yundou_v3.bill_info limit 800000 Die20 select * from yundou_v3.bill_info limit 1000000Page20
Order of magnitude data paging scheme SELECT * FROM yundou_v3.bill_info WHERE id > = (select id as id from yundou_v3.bill_info order by id asc limit 100jue 1) limit 20 position select * FROM yundou_v3.bill_info WHERE id > = (select id as id from yundou_v3.bill_info order by id asc limit 400000 Magazine 1) limit 20 position select * FROM yundou_v3.bill_info WHERE id > = (select id as id from yundou_v3.bill_info order by id asc limit 600000 score 1) limit 20 SELECT * FROM yundou_v3.bill_info WHERE id > = (select id as id from yundou_v3.bill_info order by id asc limit 800000 ~ (1) limit 20 ~ * select * FROM yundou_v3.bill_info WHERE id > = (select id as id from yundou_v3.bill_info order by id asc limit 1000000 ~ ~ 1) limit 20
Implementation steps:
1. Get start_id
Select id as start_id from yundou_v3.bill_info order by id asc limit n*page_size, 1
two。 Get the n pieces of data after start_id
SELECT * FROM yundou_v3.bill_info WHERE id > = "start_id" limit 20; is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.