Methods, devices, electronic equipment, and storage media for displaying page data

By deploying data blocks on the page and determining display identifiers based on resource usage and display priority, important data blocks are displayed first, thus solving the problem of low page data display efficiency in web services and achieving efficient page data display and improved user experience.

CN115981773BActive Publication Date: 2026-06-30BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2023-01-31
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In online services, page display is inefficient, especially during sudden surges in traffic or partial service failures, which can easily lead to page crashes and negatively impact user experience.

Method used

By deploying multiple data blocks on the page, each data block has a display identifier. The display identifier is determined based on resource usage and display priority, prioritizing the display of important data blocks and avoiding unnecessary data loading and display.

Benefits of technology

It improves the efficiency of page data display, ensures the normal operation of core functions, enhances user experience, and avoids overall crashes caused by traffic accumulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115981773B_ABST
    Figure CN115981773B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, electronic device, and storage medium for displaying page data, relating to the field of computer technology, and particularly to the field of big data. Page data is used to display on a page, and the page deploys at least two data blocks. Each data block represents a portion of the page data to be displayed. Specifically, in response to a display command, the display identifier of the data block is retrieved; wherein, the display identifier indicates whether the data block is displayed on the page; the display identifier is determined based on the resource usage and display priority of the data block, where resource usage represents the CPU usage when the data block calls the CPU, and display priority represents the importance of the data block on the page; according to the display identifier of the data block, the corresponding portion of the page data is displayed on the page. This disclosure achieves fast page display by determining the display identifier of the data block, improving the display efficiency of page data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of big data in computer technology, and in particular to a method, apparatus, electronic device and storage medium for displaying page data. Background Technology

[0002] With the development of internet services, users are requesting web pages more and more frequently. When the traffic from page requests suddenly increases to the system's capacity, or when problems arise with some data on the page causing longer request times, the page data may take longer to display, or even fail to display correctly, potentially causing page crashes. Therefore, measures need to be taken to improve the efficiency of page data display and ensure page availability. Summary of the Invention

[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for displaying page data.

[0004] According to a first aspect of this disclosure, a method for displaying page data is provided. The page data is used to display on a page, wherein the page has at least two data blocks, each data block representing partial page data to be displayed on the page, including:

[0005] In response to a display command, the display identifier of the data block is retrieved; wherein, the display identifier is used to indicate whether the data block is displayed on the page; the display identifier is determined based on the resource usage and display priority of the data block, wherein the resource usage indicates the usage of the central processing unit when the data block calls the central processing unit, and the display priority indicates the importance of the data block on the page;

[0006] Based on the display identifier of the data block, the corresponding local page data is displayed on the page.

[0007] According to a second aspect of this disclosure, a display device for page data is provided, the page data being displayed on a page, the page having at least two data blocks, each data block representing partial page data to be displayed on the page, including:

[0008] An identifier determination unit is used to retrieve the display identifier of the data block in response to a display instruction; wherein the display identifier is used to indicate whether the data block is displayed on the page; the display identifier is determined based on the resource usage and display priority of the data block, wherein the resource usage indicates the usage of the central processing unit when the data block calls the central processing unit, and the display priority indicates the importance of the data block on the page;

[0009] The display unit is used to display local page data corresponding to the data block on the page according to the display identifier of the data block.

[0010] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0011] At least one processor; and

[0012] A memory communicatively connected to the at least one processor; wherein,

[0013] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect of this disclosure.

[0014] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method described in the first aspect of this disclosure.

[0015] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect of this disclosure.

[0016] The technology disclosed herein improves page display efficiency.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0018] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0019] Figure 1 This is a flowchart illustrating a method for displaying page data according to an embodiment of this disclosure;

[0020] Figure 2 This is a schematic diagram illustrating the deployment of data blocks in a webpage according to embodiments of this disclosure;

[0021] Figure 3 This is a flowchart illustrating a method for displaying page data according to an embodiment of this disclosure;

[0022] Figure 4 This is a flowchart illustrating a method for displaying page data according to an embodiment of this disclosure;

[0023] Figure 5 This is a structural block diagram of a page data display device provided according to an embodiment of the present disclosure;

[0024] Figure 6This is a structural block diagram of a page data display device provided according to an embodiment of the present disclosure;

[0025] Figure 7 This is a structural block diagram of an electronic device used to implement the page data display method of the embodiments of this disclosure;

[0026] Figure 8 This is a structural block diagram of an electronic device used to implement the page data display method of the embodiments of this disclosure. Detailed Implementation

[0027] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0028] With the development of network services, more and more users need to use the network systems on computers. For example, a large number of users may simultaneously request to open the same page or use the same network service. When system traffic suddenly surges to the preset traffic threshold that the system can handle, or when some services themselves experience problems that increase request latency, the accumulated traffic or retries may cause the entire system to crash, preventing users from viewing web page content. Therefore, measures need to be taken to ensure that the web pages opened still maintain their core functionality during traffic surges or service failures, minimizing losses.

[0029] Currently, when a webpage is displaying normally, data can be continuously cached. When traffic surges beyond the system's capacity, data is retrieved directly from the cache for display, allowing users to view the webpage. However, caching data requires significant storage space, and the data cannot be kept up-to-date, resulting in outdated data being returned and displayed, negatively impacting the user experience.

[0030] Additionally, when traffic reaches a set threshold, the excess traffic can be throttled, temporarily blocking service and forcing it to wait in a queue for page display. However, this is a simple throttling method, which will reject a significant amount of traffic, impacting page data display efficiency.

[0031] This disclosure provides a method, apparatus, electronic device, and storage medium for displaying page data, applicable to the big data field in the field of computer technology, to improve the display efficiency of page data.

[0032] It should be noted that the page data in this embodiment is not specific to any particular user and does not reflect the personal information of any particular user. Furthermore, the page data in this embodiment comes from a publicly available dataset.

[0033] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0034] To help readers gain a deeper understanding of the implementation principles of this disclosure, the following will be discussed in conjunction with... Figures 1-8 The illustrated embodiments are further refined.

[0035] Figure 1 This is a flowchart illustrating a method for displaying page data according to an embodiment of the present disclosure. This method can be executed by a page data display device. The page data is used to display on a page, and the page has at least two data blocks, each representing a portion of the page data to be displayed. For example... Figure 1 As shown, the method includes the following steps:

[0036] S101. In response to a display command, retrieve the display identifier of the data block; wherein, the display identifier is used to indicate whether the data block is displayed on the page; the display identifier is determined based on the resource usage and display priority of the data block, the resource usage indicates the usage of the central processing unit when the data block calls the central processing unit, and the display priority indicates the importance of the data block in the page.

[0037] For example, a user can perform operations on an electronic device to display the page they want to view. The electronic device can be a mobile phone, computer, or other terminal. The user can issue a display command by performing an operation to jump to a different page or open the next page on the current page of the electronic device. The display command instructs the electronic device to display the page the user wants to view. Upon receiving the display command, the page data is retrieved and displayed. That is, the page can be used to display page data; for example, the page may be a search engine's search page, and the page data includes the user's search results and recommendations for content of interest to the user.

[0038] With the development of network services, microservice technology has gradually become the mainstream technology for network software systems. Microservice systems can break down a monolithic structure into multiple independent, easily maintainable services. Microservice technology allows pre-dividing page data into multiple data blocks; that is, at least two data blocks are deployed on the page. Each data block represents a specific portion of the page data to be displayed, and these portions can be different. For example, the page data might include search results and recommendations for content of interest to the user. Search results might be displayed on the left side of the page, and recommendations for content of interest on the right. There could be two data blocks: one representing search results and the other representing recommendations for content of interest.

[0039] Each data block can have its own display identifier, which indicates whether the corresponding local page data needs to be displayed on the page. For example, the display identifier can be 0 or 1. If the display identifier of a data block is 0, then the local page data of the data block does not need to be displayed; if the display identifier is 1, then the local page data of the data block needs to be displayed. Upon receiving a display command, the display identifiers of each data block are retrieved. The display identifiers of each data block can be predetermined; for example, display identifiers can be pre-assigned to each data block. Alternatively, during the use of the electronic device, the display identifiers of the data blocks can be updated in real time or periodically based on the user's page viewing behavior. For example, the display identifier of a data block can be determined based on its resource usage and display priority. Resource usage can represent the CPU (Central Processing Unit) usage when the data block calls upon the CPU, such as CPU utilization rate. Display priority indicates the importance of the data block within the page; the more important the local page data within the page, the higher the display priority of the corresponding data block. For example, on a search page, search results are considered more important than recommendations of content that the user is interested in. Therefore, search result data blocks have a higher display priority than data blocks recommending content that the user is interested in. The display priority of each data block can be pre-assigned or updated in real time or periodically. For example, if a user clicks more frequently on the local page data corresponding to a certain data block on the page, the display priority of that data block can be increased.

[0040] When determining the display priority of a data block based on its resource usage and display priority, if the resource usage of a data block is high, its display identifier can be set to the display identifier corresponding to not displaying it; or, if the display priority of a data block is high, it indicates that the local page data corresponding to the data block is important, and its display identifier can be set to the display identifier corresponding to needing to be displayed.

[0041] S102. Based on the display identifier of the data block, display the local page data corresponding to the data block on the page.

[0042] For example, after obtaining the display identifier of the data block, it is determined whether the local page data corresponding to the data block needs to be displayed based on the display identifier. According to the determination result, the page the user wants to view is displayed. That is, if the display identifier indicates that the local page data corresponding to the data block needs to be displayed, then the local page data of the data block is displayed; if the display identifier indicates that the local page data corresponding to the data block does not need to be displayed, then the local page data corresponding to the data block is not displayed.

[0043] In this embodiment, displaying local page data corresponding to a data block on a page according to the display identifier of the data block includes: if the display identifier of the data block is a preset first identifier, then the local page data corresponding to the data block is not loaded and displayed when the page is displayed; if the display identifier of the data block is a preset second identifier, then the local page data corresponding to the data block is loaded and displayed when the page is displayed.

[0044] Specifically, display identifiers can be divided into two types: one indicates that the local page data corresponding to the data block needs to be loaded and displayed, and the other indicates that the local page data corresponding to the data block does not need to be loaded and displayed. For example, a first identifier and a second identifier can be preset. The first identifier indicates that the local page data corresponding to the data block does not need to be loaded and displayed, and the second identifier indicates that the local page data corresponding to the data block needs to be loaded and displayed.

[0045] Determine whether the display identifier of the data block is the first identifier or the second identifier. If the display identifier of the data block is the first identifier, then when displaying the page, it is not necessary to load and display the local page data corresponding to the data block, that is, when displaying the page, the local page data of the data block is not displayed. If the display identifier of the data block is the second identifier, then when displaying the page, it is necessary to load and display the local page data corresponding to the data block, that is, when displaying the page, the local page data of the data block is displayed.

[0046] For example, the first identifier is 0, and the second identifier is 1. On the search page, the display identifier for the data block corresponding to the search results is 1, while the display identifier for the data block recommending content of interest to the user is 0. Therefore, when displaying the user's search page, only the user's search results are shown, and recommendations for content of interest to the user are not displayed.

[0047] The advantage of this setup is that by using data block display identifiers, page data can be selectively displayed. Unnecessary page data is not loaded or displayed, allowing important data to be loaded quickly for users to view, thus improving page display efficiency and ensuring the normal operation of the page's core functions.

[0048] Figure 2 This is a schematic diagram illustrating the deployment of data blocks in a webpage according to an embodiment of this disclosure. Figure 2 A webpage can be configured with four data blocks. For example, a webpage might be the homepage of a specific online community. The data blocks on the homepage could include data blocks for post announcements, pinned posts, popular posts, and community information. Each data block can provide one or more services; services refer to the functions and information offered to users. For instance, the post announcement data block might provide users with the specific content of the post announcement and the upload time. Users can click on the post announcement data block on the webpage to open and view the post announcement. The services provided by each data block can be the same or different. For example, the pinned post data block and the popular post data block could both provide users with the poster's account name and the posting time. When displaying the webpage, display indicators can be used to show only the core service data blocks, meeting users' regular needs and improving both display efficiency and user experience.

[0049] In this embodiment, multiple data blocks are deployed on the page, each corresponding to a display identifier. When displaying the page, the display identifier of each data block is determined. Based on the display identifier, it is determined whether the local page data corresponding to the data block needs to be displayed, and the required local page data is then displayed on the page. This reduces resource consumption during page display and avoids situations where some page data is difficult to load, thus affecting the display of other page data. Displaying important data allows users to use the page normally, improving page display efficiency and enhancing the user experience.

[0050] Figure 3 This is a flowchart illustrating a method for displaying page data according to an embodiment of the present disclosure. This embodiment is an optional embodiment based on the above embodiments.

[0051] In this embodiment, retrieving the display identifier of the data block in response to the display command can be further refined as follows: in response to the display command, obtaining the display identifier of each data block from the pre-cached display configuration information; wherein, the display configuration information includes the display identifier of each data block.

[0052] like Figure 3 As shown, the method includes the following steps:

[0053] S301. In response to a display command, obtain the display identifier of each data block from the pre-cached display configuration information; wherein the display configuration information includes the display identifier of each data block.

[0054] For example, the electronic device may store display configuration information, which represents the display identifiers corresponding to each data block. That is, the display identifiers of each data block of the page can be pre-stored. For instance, preset display identifiers can be stored in a preset storage location, or a storage location can be pre-set for storing updated display identifiers at any time. In other words, when the display identifiers are updated, the updated display identifiers can be cached promptly. The display configuration information may include the display identifiers of each data block, and may also include the update time of the display identifiers, etc.

[0055] Users can issue display commands via electronic devices. Upon receiving a display command, the system can retrieve cached display configuration information, such as from a pre-set database. The display identifiers for each data block are obtained from the display configuration information, allowing the system to retrieve the latest display identifiers for each data block. Cached display identifiers enable efficient management, prevent data corruption, and improve the accuracy of page display.

[0056] In this embodiment, in response to a display command, the display identifier of each data block is obtained from the pre-cached display configuration information, including: in response to a display command, determining the current traffic value of the webpage; wherein the current traffic value is used to characterize the current number of visits to the webpage; if the current traffic value of the webpage is greater than a preset traffic threshold, the display identifier of each data block is obtained from the pre-cached display configuration information.

[0057] Specifically, after responding to a display command, the current traffic value of the webpage can be determined first. The current traffic value of the webpage can refer to the number of visits to the webpage at the current time. For example, if the webpage has too many visits at the current time, it may affect the display efficiency of the webpage, that is, there may be cases where the webpage fails to load.

[0058] A traffic threshold is pre-set; this threshold represents the maximum traffic volume required for the system to function correctly. After obtaining the current traffic volume, it is compared to the threshold. If the current traffic volume is less than or equal to the threshold, the entire webpage can be displayed, without needing to display only a portion. Therefore, there's no need to determine the display identifiers for each data block; the webpage data can be displayed directly. If the current traffic volume exceeds the threshold, the traffic is considered too high. Displaying the entire webpage would take a long time, or might even fail. Therefore, the display identifiers for each data block can be retrieved from pre-cached display configuration information. Based on these identifiers, important data on the webpage can be displayed quickly, while auxiliary data can be omitted.

[0059] The advantage of this setup is that by determining the current traffic volume, it's possible to determine whether a display flag needs to be set. This allows for adaptive adjustment of the page display process based on traffic volume, preventing overall display crashes caused by accumulated traffic and effectively improving page display efficiency.

[0060] S302. Based on the display identifier of the data block, display the local page data corresponding to the data block on the page.

[0061] For example, this step can refer to step S102 above, and will not be repeated here.

[0062] In this embodiment, multiple data blocks are deployed on the page, each corresponding to a display identifier. When displaying the page, the display identifier of each data block is determined. Based on the display identifier, it is determined whether the local page data corresponding to the data block needs to be displayed, and the required local page data is then displayed on the page. This reduces resource consumption during page display and avoids situations where some page data is difficult to load, thus affecting the display of other page data. Displaying important data allows users to use the page normally, improving page display efficiency and enhancing the user experience.

[0063] Figure 4 This is a flowchart illustrating a method for displaying page data according to an embodiment of the present disclosure. This embodiment is an optional embodiment based on the above embodiments.

[0064] In this embodiment, the method may be further modified to include: determining the resource usage and display priority of the data block; and determining the display identifier of the data block based on the resource usage and display priority of the data block.

[0065] like Figure 4 As shown, the method includes the following steps:

[0066] S401. Determine the resource usage and display priority of the data block.

[0067] For example, multiple data blocks are pre-deployed on the page, and the resource usage and display priority of each data block can be determined in real time or periodically. For instance, the resource usage and display priority of a data block can be determined after each display command is received, or they can be determined at preset time points based on a preset time period. The resource usage and display priority can be obtained from preset storage space; for example, the display priority of each data block is pre-stored in the storage space, and the resource usage can be cached in the storage space in real time or periodically.

[0068] If resource usage and display priority are determined after each display command is received, the display identifier for each data block can be determined in real time based on these parameters, thus enabling page display. Alternatively, if resource usage and display priority are determined at a preset time point based on a pre-defined time period, the display identifier for each data block can be determined first. Within that time period, if a display command is received, page data is displayed according to the already determined display identifier. For example, the resource usage and display priority for each data block can be retrieved once at 00:00 each day, and then the display identifier for each data block can be determined. Within that day, whenever a display identifier is received, page data is displayed according to the display identifier determined at 00:00 that day.

[0069] In this embodiment, determining the resource usage and display priority of a data block includes: determining the CPU utilization of the data block as the resource usage based on a preset collection period and a preset performance analysis tool; obtaining historical display information of the data block; and determining the display priority of the data block based on the historical display information; wherein, the historical display information represents the display status of the data block on the page within a preset historical time period.

[0070] Specifically, the resource usage collection cycle is preset, and the current resource usage of each data block is obtained once at the end of each collection cycle. Resource usage can be CPU utilization, which can be collected using preset performance analysis tools.

[0071] Taking Golang (a compiled language) as an example, CPU usage can be analyzed using pprof (a performance analysis tool). By collecting CPU usage data for each data block at a set collection period, the time spent consuming CPU resources for each data block can be determined. CPU utilization is collected through a pre-defined scheduled task and stored as resource usage for later display and identification. In this embodiment, no specific limitation is made to the performance analysis tool.

[0072] When determining the display priority of data blocks, you can directly obtain the pre-configured display priority for each data block, or you can obtain the historical display information of each data block and determine the display priority based on the historical display information. Historical display information can represent the display status of a data block on the page within a preset historical time period. For example, the display status could be the number of times the local page data corresponding to the data block appears on the page during page display (i.e., the display count), or it could be information such as the loading time of the local page data corresponding to the data block. The display priority of a data block can be determined based on the historical display information. For example, the more times the local page data corresponding to a data block is displayed, the higher the display priority of the data block; or, the shorter the loading time of the local page data corresponding to a data block, the higher the display priority of the data block.

[0073] The benefits of this setup are that, based on preset performance analysis tools, the current resource usage of data blocks can be determined; historical display information can be obtained to determine the current display priority of data blocks and update the display identifier of data blocks, thereby achieving adaptive changes in page display. This enables the determination of whether page data is displayed based on actual conditions, improving the display accuracy of page data and enhancing the user's viewing experience.

[0074] In this embodiment, the historical display information includes the number of times the data block is displayed and the number of times it is clicked within a preset historical time period; obtaining the historical display information of the data block and determining the display priority of the data block based on the historical display information includes: determining the historical priority of the data block and obtaining the number of times the data block is displayed and the number of times it is clicked within a preset historical time period; wherein, the historical priority represents the preset initial display priority of the data block, or the display priority of the data block determined in the last time; the display priority of the data block is determined based on the historical priority, the number of times it is displayed, and the number of times it is clicked.

[0075] Specifically, historical display information can include the number of times a data block is displayed and clicked within a preset historical time period. The number of displays can be the number of times the corresponding local page data appears on the page, and the number of clicks can be the number of times the user clicks on the corresponding local page data after it appears on the page. By pre-setting the historical time period, for example, from 0:00 to 24:00 of the previous day, the display and click counts of each data block can be counted and cached once a day, making it convenient to retrieve the cached display and click counts of the previous day the next day.

[0076] Determine the historical priority of each data block. Historical priority can be an initial display priority pre-configured for the data block. For example, pre-determine the core and non-core services the page can provide to users, setting a higher initial display priority for data blocks corresponding to core services and a lower initial display priority for data blocks corresponding to non-core services. For instance, data blocks essential for displaying the page can have a higher initial display priority, while services such as icons and background colors, whose loss wouldn't affect the page's normal display, can have a lower initial display priority. Historical priority can also be the display priority of the data block determined in the last instance. For example, the display priority can be determined and cached daily, with the previously determined display priority being the display priority determined the day before. In other words, the display priority of a data block can be different each day.

[0077] After obtaining the historical priority and display information of the data block, the current display priority of the data block can be determined based on the historical priority, the number of times it has been displayed, and the number of times it has been clicked. For example, the higher the historical priority, the higher the current display priority; or, the more times it has been displayed and clicked, the higher the current display priority.

[0078] The advantage of this setting is that, based on historical priority, display count, and click count, the accuracy of determining the display priority of data blocks can be improved, ensuring that important data can be displayed when the page is displayed, thereby providing services to users.

[0079] In this embodiment, the display priority of a data block is determined based on historical priority, number of times it is displayed, and number of times it is clicked. This includes determining the display priority of a data block based on historical priority, number of times it is displayed, number of times it is clicked, a preset weight corresponding to the number of times it is displayed, and a preset weight corresponding to the number of times it is clicked.

[0080] Specifically, the weights corresponding to the number of times a data is displayed and the number of times it is clicked are preset. Based on historical priority, the number of times a data is displayed, the number of times a data is clicked, the preset weights corresponding to the number of times a data is displayed, and the preset weights corresponding to the number of times a data is clicked, the display priority of the data block is determined according to a preset calculation formula.

[0081] The display priority of data blocks can be determined using the following formula:

[0082] V = V' + c × w1 + s × w2;

[0083] Where V is the display priority of the data block, V′ is the historical priority of the data block, c is the number of times the data block is displayed within a preset historical time period, s is the number of times the data block is clicked within a preset historical time period, w1 is the preset weight of the number of displays, and w2 is the preset weight of the number of clicks.

[0084] The first multiplication result is obtained by multiplying the number of times the data will be displayed by its corresponding weight; the second multiplication result is obtained by multiplying the number of clicks by its corresponding weight; the first multiplication result, the second multiplication result, and the historical priority are added together to obtain the current display priority of the data block.

[0085] The advantage of this setup is that by combining historical priority, display count, and click count, and assigning different weights to display count and click count, the accuracy of display priority determination can be improved, thereby improving the accuracy of page data display.

[0086] In this embodiment, the historical display information includes the number of times the data block's loading request timeout occurred; the number of loading request timeouts indicates the number of times the data block failed to display data within a preset loading time; determining the display priority of the data block includes: determining the number of times the data block's loading request timeout occurred when it was displayed on the page within a preset historical time period; if the number of loading request timeouts is equal to or greater than a preset timeout threshold, then the display priority of the data block is determined to be a preset priority level.

[0087] Specifically, the historical display information can also include the number of timeouts for each data block's loading requests. A timeout refers to the number of times the local page data corresponding to a data block fails to display within the preset loading time. In other words, a timeout occurs when the local page data corresponding to a data block does not appear on the page within the preset loading time. To determine the number of timeouts for each data block within a historical time period, for example, if an electronic device can count and cache the daily timeout count for each data block, the timeout count in the historical display information could be the timeout count from the previous day.

[0088] A timeout threshold is preset. After obtaining the number of timeout requests for loading a data block on the page within a historical time period, this number is compared with the timeout threshold. If the number of timeouts for a data block is equal to or greater than the preset threshold, it is determined that the data block has a problem, and loading the partial page data of this data block will affect the display of the entire page. A priority level is preset, and the display priority of this data block is determined to be the preset priority level. For example, if the preset priority level is 0, then the display priority of this data block is 0, which is the lowest display priority.

[0089] The benefit of this setting is that when the number of timeouts for loading a data block reaches a certain threshold within a certain period, information such as historical priority, number of displays, and number of clicks is no longer considered. The display priority of the data block is reduced to 0, which avoids loading partial page data of the data block when displaying the page, thus affecting the overall page display and improving the display efficiency of page data.

[0090] In this embodiment, the method further includes: if the number of loading request timeouts is less than a preset timeout threshold, determining the historical priority of the data block, and obtaining the number of times the data block is displayed and clicked within a preset historical time period; and determining the display priority of the data block based on the historical priority, the number of times it is displayed, and the number of times it is clicked.

[0091] Specifically, the number of loading request timeouts is compared with a timeout threshold. If the number of loading request timeouts for a data block is less than the preset timeout threshold, then the data block is determined to be able to be displayed normally. The display priority of the data block can be calculated based on the historical priority, display count, and click count within a preset historical time period, as well as the historical priority, display count, and click count.

[0092] For example, a page may contain three data blocks. One data block's loading request timeout count exceeds a timeout threshold, while the other two data blocks' loading request timeout counts do not exceed the timeout threshold. The display priority of the data block whose timeout count exceeds the threshold is immediately reduced to 0, while the two data blocks whose timeout counts do not exceed the threshold continue to have their display priorities determined according to a preset calculation formula.

[0093] The advantage of this setting is that for data blocks that can be displayed normally, the display priority needs to be calculated according to the preset calculation method, rather than directly assigning a display priority, thereby improving the accuracy of determining the display priority and thus improving the accuracy of determining the display identifier.

[0094] S402. Determine the display identifier of the data block based on the resource usage and display priority of the data block.

[0095] For example, after obtaining the resource usage and display priority of a data block, the resource usage and display priority can be calculated. For instance, the CPU utilization and the current display priority can be calculated to obtain the display identifier for each data block.

[0096] The display identifier can include a first identifier that does not require the display of partial page data of the data block, and a second identifier that requires the display of partial page data of the data block. The method for determining the display identifier can be preset. For example, if the display priority of the data block is higher than a preset level, then the display identifier of the data block is determined to be the second identifier; or, CPU utilization can represent the resource consumption of the data block, and if the CPU utilization is lower than a preset utilization rate, then the display identifier of the data block is determined to be the second identifier.

[0097] In this embodiment, determining the display identifier of a data block based on its resource usage and display priority includes: obtaining the CPU's available resources and current query rate per second; wherein the CPU's available resources represent the CPU's total capacity minus its default CPU consumption; and determining the data block's display identifier based on preset constraints, using the data block's resource usage, display priority, CPU's available resources, and current query rate per second; wherein the preset constraints represent the numerical relationship between the data block's resource usage, display priority, CPU's available resources, current query rate per second, and the display identifier.

[0098] Specifically, the current CPU uptime and QPS (Queries Per Second) are obtained. In this embodiment, the method of obtaining QPS is not specifically limited. CPU uptime refers to the resources that the CPU can currently use, which can be determined by the total CPU capacity and the default CPU consumption. Both the total CPU capacity and the default CPU consumption are preset CPU resources. The default CPU consumption can be the default resource overhead for processing requests, such as the resource overhead of GC (Garbage Collection). Subtracting the default CPU consumption from the total CPU capacity yields the CPU uptime.

[0099] Pre-defined constraints determine the display identifier. These constraints can represent the numerical relationship between the data block's resource usage, display priority, CPU uptime, current queries per second, and the display identifier. In other words, the data block's resource usage, display priority, CPU uptime, and current queries per second can be substituted into the pre-defined constraints to calculate the data block's display identifier, improving the efficiency and accuracy of display identifier determination.

[0100] The preset constraints may include a first condition and a second condition, wherein the first condition represents the maximum value of the product of the display priority of the data block, the query rate per second, and the display identifier, and the second condition represents the relationship between the product of the display identifier of the data block, the resource usage, and the query rate per second, and the amount of CPU resources to be used.

[0101] The first condition is

[0102] The second condition is

[0103] Among them, V i p represents the display priority of the i-th data block. i Let q represent the resource usage of the i-th data block, q represent the current query rate per second, S represent the total CPU capacity, S0 represent the default CPU consumption, and S-S0 represent the CPU's available capacity. i This represents the display identifier of the i-th data block. The display identifier is 0 or 1, and the number of data blocks is n, where n ≥ 1.

[0104] Display identifier x i For unknowns, the first condition is to calculate the display priority, QPS, and unknown x for each data block. i The first condition is to sum the products of the first two conditions and determine the maximum value of the sum. The second condition is to determine the resource usage, QPS, and unknown quantity x for each data block. i The sum of the products of the two numbers is such that the sum is less than the amount of CPU to be used.

[0105] The advantage of this setup is that, by using two constraints, the display identifier of the data block can be quickly determined, and by combining various information for calculation, the accuracy and efficiency of determining the display identifier can be improved, thereby improving the accuracy and efficiency of page display.

[0106] S403. In response to a display command, retrieve the display identifier of the data block.

[0107] For example, this step can refer to step S101 above, and will not be repeated here.

[0108] S404. Based on the display identifier of the data block, display the local page data corresponding to the data block on the page.

[0109] For example, this step can refer to step S102 above, and will not be repeated here.

[0110] In this embodiment, multiple data blocks are deployed on the page, each corresponding to a display identifier. The display identifiers for each data block are pre-calculated based on resource usage and display priority. During page display, the cached display identifiers of each data block are directly retrieved. This eliminates the need for further determination of display identifiers, improving page data display efficiency. Based on the display identifiers, it is determined whether the corresponding local page data needs to be displayed, and the required local page data is then displayed on the page. This reduces resource consumption during page display and avoids situations where some page data is difficult to load, thus affecting the display of other page data. Displaying important data ensures normal user operation of the page, improving page display efficiency and enhancing the user experience.

[0111] Figure 5 This is a structural block diagram of a page data display device provided in an embodiment of the present disclosure. Page data is used to display on a page, and the page has at least two data blocks, each representing a portion of the page data to be displayed. For ease of explanation, only the parts relevant to the embodiments of the present disclosure are shown. (Refer to...) Figure 5 The page data display device 500 includes: an identification determination unit 501 and a display unit 502.

[0112] The identifier determination unit 501 is used to retrieve the display identifier of the data block in response to a display instruction; wherein the display identifier is used to indicate whether the data block is displayed on the page; the display identifier is determined based on the resource usage and display priority of the data block, wherein the resource usage indicates the usage of the central processing unit when the data block calls the central processing unit, and the display priority indicates the importance of the data block on the page;

[0113] Display unit 502 is used to display local page data corresponding to the data block on the page according to the display identifier of the data block.

[0114] Figure 6 A structural block diagram of a page data display device provided in an embodiment of this disclosure, such as... Figure 6 As shown, the page data display device 600 includes an identification determination unit 601 and a display unit 602, wherein the display unit 602 includes a first display module 6021 and a second display module 6022.

[0115] The first display module 6021 is used to prevent loading and displaying the local page data corresponding to the data block when displaying the page if the display identifier of the data block is a preset first identifier.

[0116] The second display module 6022 is used to load and display the local page data corresponding to the data block when displaying the page if the display identifier of the data block is a preset second identifier.

[0117] In one example, the identifier determination unit 601 includes:

[0118] The acquisition module is used to acquire the display identifier of each data block from pre-cached display configuration information in response to a display command; wherein the display configuration information includes the display identifier of each data block.

[0119] In one example, the module is retrieved, including:

[0120] The traffic determination submodule is used to determine the current traffic value of the webpage in response to a display command; wherein the current traffic value is used to represent the current number of visits to the webpage;

[0121] The traffic comparison submodule is used to obtain the display identifier of each data block from the pre-cached display configuration information if the current traffic value of the webpage is greater than the preset traffic threshold.

[0122] In one example, the device also includes:

[0123] The first determining unit is used to determine the resource usage and display priority of the data block;

[0124] The second determining unit is used to determine the display identifier of the data block based on the resource usage and display priority of the data block.

[0125] In one example, the first determined unit includes:

[0126] The first determining module is used to determine the CPU utilization rate of the data block, which is the resource usage, based on a preset collection cycle and a preset performance analysis tool.

[0127] The second determining module is used to obtain the historical display information of the data block and determine the display priority of the data block based on the historical display information; wherein, the historical display information represents the display status of the data block on the page within a preset historical time period.

[0128] In one example, the historical display information includes the number of times the data block was displayed and the number of times it was clicked within a preset historical time period;

[0129] The second determining module includes:

[0130] The first determining submodule is used to determine the historical priority of the data block and obtain the number of times the data block is displayed and clicked within a preset historical time period; wherein, the historical priority represents the preset initial display priority of the data block, or the display priority of the data block in the last determined period.

[0131] The second determining submodule is used to determine the display priority of the data block based on the historical priority, the number of times it is displayed, and the number of times it is clicked.

[0132] In one example, the second determined submodule is specifically used for:

[0133] The display priority of the data block is determined based on the historical priority, the number of times it is displayed, the number of times it is clicked, a preset weight corresponding to the number of times it is displayed, and a preset weight corresponding to the number of times it is clicked.

[0134] In one example, the display priority of the data block is...

[0135] V = V' + c × w1 + s × w2;

[0136] Wherein, V is the display priority of the data block, V′ is the historical priority of the data block, c is the number of times the data block is displayed within a preset historical time period, s is the number of times the data block is clicked within a preset historical time period, w1 is the preset weight of the number of displays, and w2 is the preset weight of the number of clicks.

[0137] In one example, the historical display information includes the number of times the data block's loading request timed out; the number of loading request timeouts indicates the number of times the data block failed to display data within a preset loading time.

[0138] The second determining module includes:

[0139] The count determination submodule is used to determine the number of times the loading request timeout occurs when the data block is displayed on the page within a preset historical time period.

[0140] The first comparison submodule is used to determine the display priority of the data block as a preset priority level if the number of loading request timeouts is equal to or greater than a preset timeout threshold.

[0141] In one example, the second determining module also includes:

[0142] The second comparison submodule is used to determine the historical priority of the data block if the number of loading request timeouts is less than a preset timeout threshold, and to obtain the number of times the data block is displayed and clicked within a preset historical time period; and to determine the display priority of the data block based on the historical priority, the number of times it is displayed and the number of times it is clicked.

[0143] In one example, the second determining unit includes:

[0144] The information acquisition module is used to acquire the available usage of the central processing unit and the current query rate per second; wherein, the available usage of the central processing unit represents the total capacity of the central processing unit minus the default consumption of the central processing unit;

[0145] The identifier determination module is used to determine the display identifier of the data block based on the resource usage, display priority, CPU availability, and current query rate per second of the data block, according to preset constraints; wherein the preset constraints represent the numerical relationship between the resource usage, display priority, CPU availability, and current query rate per second of the data block and the display identifier.

[0146] In one example, the preset constraints include a first condition and a second condition, wherein the first condition represents the maximum value of the product of the display priority of the data block, the query rate per second, and the display identifier, and the second condition represents the relationship between the product of the display identifier of the data block, the resource usage, and the query rate per second, and the amount of CPU resources available for use.

[0147] The first condition is

[0148] The second condition is

[0149] Among them, V i p represents the display priority of the i-th data block. i Let q represent the resource usage of the i-th data block, q represent the current query rate per second, S represent the total CPU capacity, S0 represent the default CPU consumption, and S-S0 represent the CPU's available capacity. i This represents the display identifier of the i-th data block, which can be 0 or 1, and the number of data blocks is n.

[0150] According to embodiments of this disclosure, this disclosure also provides an electronic device.

[0151] Figure 7 A structural block diagram of an electronic device provided in this disclosure embodiment, such as... Figure 7As shown, the electronic device 700 includes: at least one processor 702; and a memory 701 communicatively connected to the at least one processor 702; wherein the memory stores instructions executable by the at least one processor 702, the instructions being executed by the at least one processor 702 to enable the at least one processor 702 to perform the page data display method of this disclosure.

[0152] The electronic device 700 also includes a receiver 703 and a transmitter 704. The receiver 703 is used to receive instructions and data sent by other devices, and the transmitter 704 is used to send instructions and data to external devices.

[0153] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0154] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the method provided in any of the above embodiments.

[0155] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0156] like Figure 8 As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0157] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0158] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the page data display method. For example, in some embodiments, the page data display method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the page data display method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the page data display method by any other suitable means (e.g., by means of firmware).

[0159] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0160] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0163] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0164] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0165] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0166] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for displaying page data, wherein the page data is used to display on a page, the page having at least two data blocks, each data block representing partial page data to be displayed on the page, including: In response to a display instruction, the current traffic value of the webpage is determined; wherein the current traffic value is used to characterize the current number of visits to the webpage; If the current traffic value of the webpage is greater than a preset traffic threshold, the display identifier of the data block is retrieved; wherein, the display identifier is used to indicate whether the data block is displayed on the page; Based on the display identifier of the data block, display the corresponding local page data on the page; The method further includes: Determine the resource usage and display priority of the data block; the resource usage represents the CPU usage when the data block calls the CPU, and the display priority represents the importance of the data block on the page; Obtain the available CPU capacity and the current query rate per second; wherein, the available CPU capacity represents the total CPU capacity minus the default CPU consumption; Based on the resource usage, display priority, CPU availability, and current query rate per second of the data block, a display identifier for the data block is determined according to preset constraints. The preset constraints represent the numerical relationship between the resource usage, display priority, CPU availability, current query rate per second of the data block, and the display identifier.

2. The method according to claim 1, wherein, Retrieving the display identifier of the data block includes: The display identifier of each data block is obtained from the pre-cached display configuration information; wherein the display configuration information includes the display identifier of each data block.

3. The method according to claim 1, wherein, The step of displaying the local page data corresponding to the data block on the page according to the display identifier of the data block includes: If the display identifier of the data block is a preset first identifier, then when displaying the page, the local page data corresponding to the data block will not be loaded and displayed; If the display identifier of the data block is a preset second identifier, then when displaying the page, the local page data corresponding to the data block is loaded and displayed.

4. The method according to any one of claims 1-3, wherein determining the resource usage and display priority of the data block includes: Based on a preset collection cycle and a preset performance analysis tool, the CPU utilization rate of the data block is determined as the resource usage. Obtain the historical display information of the data block, and determine the display priority of the data block based on the historical display information; wherein, the historical display information represents the display status of the data block on the page within a preset historical time period.

5. The method according to claim 4, wherein, The historical display information includes the number of times the data block was displayed and the number of times it was clicked within a preset historical time period; The step of obtaining historical display information of the data block and determining the display priority of the data block based on the historical display information includes: The historical priority of the data block is determined, and the number of times the data block is displayed and clicked within a preset historical time period is obtained; wherein, the historical priority represents the preset initial display priority of the data block, or the display priority of the data block in the last determined period; The display priority of the data block is determined based on the historical priority, the number of times it is displayed, and the number of times it is clicked.

6. The method according to claim 5, wherein, Determining the display priority of the data block based on the historical priority, the number of times it is displayed, and the number of times it is clicked includes: The display priority of the data block is determined based on the historical priority, the number of times it is displayed, the number of times it is clicked, a preset weight corresponding to the number of times it is displayed, and a preset weight corresponding to the number of times it is clicked.

7. The method according to claim 6, wherein, The display priority of the data block is ; in, The display priority of the data block, The historical priority of the data block, The number of times the data block is displayed within a preset historical time period. The number of clicks on the data block within a preset historical time period. The weight is set according to the preset number of times it is displayed. The weight of the preset number of clicks.

8. The method according to claim 4, wherein, The historical display information includes the number of times the data block's loading request timed out; the number of times the loading request timed out indicates the number of times the data block failed to display data within the preset loading time. Determining the display priority of the data block includes: Determine the number of times the loading request times out when the data block is displayed on the page within a preset historical time period; If the number of loading request timeouts is equal to or greater than a preset timeout threshold, then the display priority of the data block is determined to be a preset priority level.

9. The method according to claim 8, further comprising: If the number of loading request timeouts is less than a preset timeout threshold, the historical priority of the data block is determined, and the number of times the data block is displayed and clicked within a preset historical time period is obtained; based on the historical priority, the number of times it is displayed, and the number of times it is clicked, the display priority of the data block is determined.

10. The method according to claim 1, wherein, The preset constraints include a first condition and a second condition, wherein the first condition represents the maximum value of the product of the display priority of the data block, the query rate per second, and the display identifier, and the second condition represents the relationship between the product of the display identifier of the data block, the resource usage, and the query rate per second, and the amount of CPU resources to be used. The first condition is ; The second condition is ; in, This indicates the display priority of the i-th data block. This represents the resource usage of the i-th data block. This indicates the current query rate per second. Indicates the total capacity of the central processing unit. This indicates the default CPU power consumption. This indicates the amount of CPU data available for use. This represents the display identifier of the i-th data block, which can be 0 or 1, and the number of data blocks is n.

11. A display device for page data, the page data being displayed on a page, the page having at least two data blocks, each data block representing partial page data to be displayed on the page, comprising: An identifier determination unit is used to determine the current traffic value of a webpage in response to a display instruction; wherein the current traffic value is used to characterize the current number of visits to the webpage; If the current traffic value of the webpage is greater than a preset traffic threshold, the display identifier of the data block is retrieved; wherein, the display identifier is used to indicate whether the data block is displayed on the page; The display unit is used to display local page data corresponding to the data block on the page according to the display identifier of the data block; The first determining unit is used to determine the resource usage and display priority of the data block; the resource usage represents the usage of the central processing unit when the data block calls the central processing unit, and the display priority represents the importance of the data block in the page; The second determining unit is used to obtain the amount of CPU available for use and the current query rate per second; wherein, the amount of CPU available for use represents the total capacity of the CPU minus the default CPU consumption. Based on the resource usage, display priority, CPU availability, and current query rate per second of the data block, a display identifier for the data block is determined according to preset constraints. The preset constraints represent the numerical relationship between the resource usage, display priority, CPU availability, current query rate per second of the data block, and the display identifier.

12. The apparatus according to claim 11, wherein, The identifier determination unit includes: The acquisition module is used to acquire the display identifier of each data block from the pre-cached display configuration information; wherein the display configuration information includes the display identifier of each data block.

13. The apparatus according to claim 11, wherein, The display unit includes: The first display module is configured to, when displaying a page, not load and display the local page data corresponding to the data block if the display identifier of the data block is a preset first identifier; The second display module is used to load and display the local page data corresponding to the data block when displaying the page if the display identifier of the data block is a preset second identifier.

14. The apparatus according to any one of claims 11-13, wherein, The first determining unit includes: The first determining module is used to determine the CPU utilization rate of the data block, which is the resource usage, based on a preset collection cycle and a preset performance analysis tool. The second determining module is used to obtain the historical display information of the data block and determine the display priority of the data block based on the historical display information; wherein, the historical display information represents the display status of the data block on the page within a preset historical time period.

15. The apparatus according to claim 14, wherein, The historical display information includes the number of times the data block was displayed and the number of times it was clicked within a preset historical time period; The second determining module includes: The first determining submodule is used to determine the historical priority of the data block and obtain the number of times the data block is displayed and clicked within a preset historical time period; wherein, the historical priority represents the preset initial display priority of the data block, or the display priority of the data block in the last determined period. The second determining submodule is used to determine the display priority of the data block based on the historical priority, the number of times it is displayed, and the number of times it is clicked.

16. The apparatus according to claim 15, wherein, The second determining submodule is specifically used for: The display priority of the data block is determined based on the historical priority, the number of times it is displayed, the number of times it is clicked, a preset weight corresponding to the number of times it is displayed, and a preset weight corresponding to the number of times it is clicked.

17. The apparatus according to claim 16, wherein, The display priority of the data block is ; in, The display priority of the data block, The historical priority of the data block, The number of times the data block is displayed within a preset historical time period. The number of clicks on the data block within a preset historical time period. The weight is set according to the preset number of times it is displayed. The weight of the preset number of clicks.

18. The apparatus according to claim 14, wherein, The historical display information includes the number of times the data block's loading request timed out; the number of times the loading request timed out indicates the number of times the data block failed to display data within the preset loading time. The second determining module includes: The count determination submodule is used to determine the number of times the loading request timeout occurs when the data block is displayed on the page within a preset historical time period. The first comparison submodule is used to determine the display priority of the data block as a preset priority level if the number of loading request timeouts is equal to or greater than a preset timeout threshold.

19. The apparatus of claim 18, further comprising: The second comparison submodule is used to determine the historical priority of the data block if the number of loading request timeouts is less than a preset timeout threshold, and to obtain the number of times the data block is displayed and clicked within a preset historical time period; and to determine the display priority of the data block based on the historical priority, the number of times it is displayed and the number of times it is clicked.

20. The apparatus according to claim 11, wherein, The preset constraints include a first condition and a second condition, wherein the first condition represents the maximum value of the product of the display priority of the data block, the query rate per second, and the display identifier, and the second condition represents the relationship between the product of the display identifier of the data block, the resource usage, and the query rate per second, and the amount of CPU resources to be used. The first condition is ; The second condition is ; in, This indicates the display priority of the i-th data block. This represents the resource usage of the i-th data block. This indicates the current query rate per second. Indicates the total capacity of the central processing unit. This indicates the default CPU power consumption. This indicates the amount of CPU data available for use. This represents the display identifier of the i-th data block, which can be 0 or 1, and the number of data blocks is n.

21. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method of any one of claims 1-10.

22. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-10.

23. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-10.