In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to talk to you about how to quickly paginate the big data report. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can gain something according to this article.
Before explaining how to deal with this problem, let's understand what causes the slow presentation of large amounts of data reports.
Generally speaking, there are no more than two reasons:
1. In the data query business, the query conditions are broad, resulting in tens of millions or even hundreds of millions of data items in the result set after database query.
2. The use of memory computing mechanism, that is, such a large amount of data has to be calculated in memory at one time, and then presented later, the user experience is particularly bad, in this process, it is likely that there is a memory overflow because of the large amount of computation, so it is impossible to continue the calculation.
In view of this situation, we can adopt the method of asynchronous processing, dividing the fetch and rendering into two threads for asynchronous processing. After issuing SQL, the fetch thread continuously fetches the data cache to the local, and the rendering thread obtains the data from the local cache for display. In this way, the data that has been fetched and cached can be quickly presented without a sense of waiting; while the SQL involved in the fetch thread maintains the same transaction in the database, there will be no inconsistency, and all the two problems mentioned above have been solved perfectly.
At the same time, with the binary file storage format, the report can randomly access records by line number without having to traverse each time to find data. In other words, this storage format supports jump to any page access, which greatly improves the user experience. However, due to the asynchronous mechanism, the total number of pages and records displayed on the page side will change with the fetching process.
After reading the above, do you have any further understanding of how to quickly paginate the big data report? If you want to know more knowledge or related content, 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.