Page content loading method and device, equipment and storage medium

By using a cursor to sequentially read data records in mobile terminal applications and updating the displayed content in batches in the cache management component, the problems of low data loading efficiency and poor stability are solved, achieving fast initial display and stable content updates.

CN123048876APending Publication Date: 2026-11-06BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610999700.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-06
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

In existing technologies, the data loading methods for mobile terminal application pages suffer from low efficiency in pagination loading and lag when loading the entire page. This is especially true when the data volume is large or the data is loaded later in the page, which leads to a decrease in data location and return efficiency and can easily cause jumps or flickering.

Method used

By using a cursor to sequentially read data records, the data records are gradually stored into the cache management component. When a preset number is reached, the page display content is generated and updated in batches, reducing data location and memory usage, and improving loading efficiency and stability.

Benefits of technology

By sequentially reading and batch updating data records through the cache management component, the efficiency and stability of page content loading are improved, the first screen display time and scrolling lag are reduced, and the user experience is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123048876A_ABST
    Figure CN123048876A_ABST
Patent Text Reader

Abstract

The present disclosure provides a page content loading method and device, equipment and storage medium, and relates to the technical field of data processing, in particular to the technical field of terminal technology, Internet, etc. The specific implementation scheme is: in response to a loading request of a target page, a cursor corresponding to the target page is obtained in a database; data records pointed by the cursor are read into a cache management component; in a case where the number of data records that have been read into the cache management component reaches a first preset number corresponding to the target page, display content of the target page is generated according to the first preset number of data records.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to the fields of terminal technology, the Internet, and other related technologies. Specifically, it relates to a method, apparatus, device, and storage medium for loading page content. Background Technology

[0002] Mobile applications often display large amounts of data. Current technologies typically employ pagination or full loading to load and display content. However, pagination loading suffers from increased query time with each page. When the data volume is large or the data is loaded later in the list, data location and return efficiency decreases, and jumps or flickering may occur during list appending. Full loading, on the other hand, requires fetching and rendering all data at once, which can lead to slow initial screen display and lag during scrolling. Therefore, further improvements are needed to enhance the loading efficiency of application page content and improve the stability of the content refresh process. Summary of the Invention

[0003] This disclosure provides a method, apparatus, device, and storage medium for loading page content.

[0004] According to one aspect of this disclosure, a method for loading page content is provided, comprising: In response to a loading request for the target page, retrieve the cursor corresponding to the target page from the database; Read the data record pointed to by the cursor into the cache management component; If the number of data records read into the cache management component reaches the first preset number corresponding to the target page, the display content of the target page is generated based on the first preset number of data records.

[0005] According to another aspect of this disclosure, a page content loading device is provided, comprising: The data acquisition module is used to retrieve the cursor corresponding to the target page from the database in response to the target page's loading request; The data processing module is used to read the data record pointed to by the cursor into the cache management component; The content loading module is used to generate the display content of the target page based on the first preset number of data records when the number of data records read into the cache management component reaches the first preset number corresponding to the target page.

[0006] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the page content loading method described above.

[0007] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause a computer to execute the page content loading method described above.

[0008] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the page content loading method described above.

[0009] 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

[0010] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein: Figure 1 This is a flowchart illustrating a method for loading page content according to an embodiment of this disclosure; Figure 2 This is a schematic diagram of a display content update process provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of another display content update process provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of a page content loading device provided in an embodiment of this disclosure; Figure 5 This is a block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0011] 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.

[0012] The terms such as "first," "second," and "third" used herein are used only to distinguish one entity (or operation) from another, and are not intended to require or imply a specific order or relationship between these entities (or operations). Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0013] The collection, storage, use, processing, transmission, provision, and disclosure of any type of information, such as user personal information, in this technical solution comply with relevant laws and regulations and do not violate public order and good morals.

[0014] Before describing the technical solutions provided by the embodiments of this disclosure, in order to facilitate the understanding of the embodiments of this disclosure, this disclosure first specifically explains the problems existing in the related technologies.

[0015] In mobile applications, pages can be used to display large amounts of data records. Existing technologies typically use pagination or full loading to load data and display specific content.

[0016] Specifically, paginated loading methods, such as querying the system's media database (MediaStore) using LIMIT and OFFSET, load a fixed number of data per page. Scrolling to the bottom triggers the loading of the next page, appending to the end of the list. When dealing with large amounts of data, OFFSET skips a large number of rows, resulting in low efficiency. Query time increases with the number of pages. Furthermore, when the data volume is large or the loading position is far back, data location and return efficiency decreases, and jumps or flickering may occur during list appending.

[0017] The full loading method requires all data to be acquired and rendered at once, which can easily cause slow initial display, lag when scrolling, and in severe cases, even unresponsiveness.

[0018] It is evident that it is necessary to improve the loading efficiency of application page content and enhance the stability of the content refresh process.

[0019] In view of this, the present disclosure provides a method, apparatus, device, and storage medium for loading page content, which can improve the loading efficiency of application page display content and enhance the stability of the display content refresh process.

[0020] This disclosure provides a method for loading page content, which can be executed by a page content loading system. The page content loading system can be deployed in mobile terminals, tablets, in-vehicle terminals, wearable devices, or other electronic devices with page display capabilities. The page content loading system may include a data loading component, a cache management component, and a page display component.

[0021] Combination Figure 1 As shown, the method may include the following steps 101 to 103.

[0022] Step 101: In response to the loading request of the target page, retrieve the cursor corresponding to the target page from the database; Step 102: Read the data record pointed to by the cursor into the cache management component; Step 103: If the number of data records read into the cache management component reaches the first preset number corresponding to the target page, generate the display content of the target page based on the first preset number of data records.

[0023] The above steps will be described in detail below with reference to specific embodiments, as shown in the following figures.

[0024] First, regarding step 101, the target page can be a list page in a mobile terminal application, such as an order list page, message list page, file list page, transaction record page, or other pages that include a list display; the target page can also be other pages that generate display content based on data records, such as card-style pages, waterfall layout pages, or table pages, or other styles of pages.

[0025] For example, when the target page is an order list page, the data record can be an order record; when the target page is a message list page, the data record can be a message record.

[0026] When the target page is opened for the first time, or when the target page is re-entered or refreshed, a request to load data records on the target page can be automatically triggered.

[0027] The database stores the data records required by the target page. This database can be a local database on the mobile terminal or a data storage unit located in the cloud.

[0028] For example, in response to a loading request for the target page, the data loading component can call a database query interface to query the data records in the database corresponding to the target page, and obtain a cursor corresponding to the target page. The cursor can be a Cursor object in a specific database framework.

[0029] After obtaining the cursor, the next steps are steps 102 and 103, in which data records are read sequentially based on the cursor and the read data records are stored in the cache management component.

[0030] The cache management component can be set between the data reading process and the page display content generation process to temporarily store data records read from the cursor.

[0031] The cache management component can use cursors to read data records sequentially according to the data order of the query results, and maintain the read data records according to the reading order.

[0032] During the process of reading the data record pointed to by the cursor into the cache management group, the corresponding data record can be read according to the current position pointed to by the cursor and stored in the cache management component. As the cursor moves, data records in the database can be sequentially entered into the cache management component, gradually increasing the number of data records read in the cache management component.

[0033] Because cursors do not require all data records to be transferred to the target page at once, but rather provide an entry point for sequentially reading data records, it is possible to read data records from the database one by one, thus avoiding the need to retrieve and process all data records at once during the initial page load.

[0034] In this disclosure, when the number of data records read into the cache management component reaches the first preset number corresponding to the target page, a rendering operation on the data records will be triggered so that users can see the content displayed on the page more quickly. The content displayed on the page can be text content, image content, icon content, time content, status content, or a combination of the above.

[0035] In other words, when the cache management component already has the data records required for the initial display of the target page, it can generate the display content of the target page based on the first preset number of data records without waiting for all data records in the database to be read, so that the target page can present the initial content as soon as possible.

[0036] Optionally, the first preset quantity can be determined based on the number of data records required by the target page during the initial display phase. For example, it can be predetermined based on the display area size of the target page, the height of the list items, the terminal screen size, or the display requirements of the first screen of the page. For example, when the first screen of the target page can display 200 data records, the first preset quantity can be set to 200, or it can be set to a value greater than the actual number displayed on the first screen; no specific restrictions are imposed here.

[0037] This disclosure utilizes a cursor to read data records sequentially, eliminating the need to skip a large number of data records preceding the target data during each pagination query, thereby reducing performance overhead during data location. Simultaneously, the cursor can provide the data record corresponding to the current reading position as needed during traversal, avoiding loading all data records into memory at once. This helps control memory usage during data reading, reduces the amount of data processing during the initial page load, improves page content loading efficiency, and enhances the display response speed of the target page in scenarios with large amounts of data.

[0038] During the loading of the target page, since there is no need to wait for all data records to be read before displaying content, the initial display content can be generated first, improving the first-screen display speed of the target page. Simultaneously, because data records first enter the cache management component, and then the display content is generated based on the read data records, the data reading process and the page display content generation process are decoupled, reducing the instantaneous processing pressure caused by a large amount of data directly entering the page display process.

[0039] In some embodiments of this disclosure, after the number of data records read into the cache management component reaches the first preset number corresponding to the target page, the generation of the initial display content of the target page can be triggered, and subsequent data records in the database can continue to be read based on the cursor, and the subsequently read data records can be stored into the cache management component in sequence. When a second preset number of data records are added, the update of the subsequent display content of the target page can continue to be automatically triggered.

[0040] For example, the method may also include the following steps: whenever a second preset number of data records are added to the cache management component, the display content of the target page is updated according to the newly added second preset number of data records.

[0041] Specifically, during the continued reading of data records, the number of new data records read to the cache management component since the last update of the target page's displayed content can be counted. Whenever a second preset number of data records are read to the cache management component, the displayed content of the target page is updated based on this second preset number of data records.

[0042] For example, whenever the number of newly read data records to the cache management component reaches a second preset number, a data callback, i.e., a batch of data callbacks, can be triggered. Based on this batch of data callbacks, the data records corresponding to the current batch can be converted into new display content for the target page, and this new display content can be appended to the display position of the existing display content on the target page. Thus, after the target page completes the initial display, it can add display content in batches as data records are continuously read, without having to wait for all data records to be read before updating all at once.

[0043] Optionally, the second preset quantity can be determined based on the data display density of the target page, the processing performance of the terminal device, the complexity of the list items, or the desired refresh frequency. For example, the second preset quantity can be set to 500 items, or it can be set to other quantities depending on different page types.

[0044] In some optional embodiments, if the data records corresponding to the target page already exist in the cache management component, the database query and cursor reading process can be skipped. Instead, data records can be retrieved directly from the cache management component in batches according to a second preset number, and the display content of the target page can be updated based on each batch of retrieved data records. Therefore, regardless of whether the data records originate from continuous cursor reading or from existing cached data in the cache management component, a batch update approach can be adopted.

[0045] Based on this disclosure, after the initial content is generated, subsequent data records can update the target page's display content in batches. This avoids converting a large number of data records into display content all at once, thus distributing the processing pressure during subsequent content generation and page refresh, reducing the risk of stuttering caused by centralized updates of large amounts of data, and improving the display continuity and scrolling smoothness of the target page during subsequent data loading. Furthermore, since database reading is still based on cursor order, there is no need to skip large amounts of historical data to locate subsequent data records, which helps reduce performance overhead during subsequent data reading.

[0046] In some embodiments of this disclosure, each batch of a second preset number of data records includes a start index and an end index corresponding to the current batch of data.

[0047] Based on the newly added second preset number of data records, update the displayed content of the target page, including: Step 201: The page display component retrieves data records within the corresponding index range from the cache management component based on the start and end indexes; Step 202: Update the display content of the target page using the page display component based on the data records within the index range.

[0048] Specifically, each batch of data records with a second preset number of records has a start index and an end index. The start index indicates the starting position of the current batch of data records in the cache management component, and the end index indicates the ending position of the current batch of data records in the cache management component.

[0049] Optionally, a batch data callback method can be set in the data loading callback interface, which can be represented as onPartialDataLoaded(fromIndex, toIndex), where fromIndex represents the starting index of the current batch of data and toIndex represents the ending index of the current batch of data.

[0050] When updating the display content of the target page based on the newly added second preset number of data records, instead of directly passing all data records of the current batch to the page display component, the corresponding data records of the current batch can be determined through the index range, and then the page display component can retrieve the corresponding data records from the cache management component based on the index range.

[0051] For example, the page display component can be a specific display processing part in the UI layer. For ease of description, the page display component is described as the View layer in this disclosure. For example, in a mobile application, the View layer can include a page, a list control, a list adapter, etc. The View layer can receive data callbacks, so that the list can add the current batch of data records on the basis of existing data.

[0052] As a specific example, when the second preset quantity is 500 records, if the current batch of data records is the 500th to 999th data records in the cache management component, then the starting index corresponding to the current batch of data can be 500 and the ending index can be 999; it is also possible to use an index representation method where the starting index includes and the ending index does not include, in which case the starting index can be 500 and the ending index can be 1000. This disclosure does not specifically limit this.

[0053] After obtaining the data record corresponding to the current batch, the page display component can perform a partial refresh of the target page based on that data record, thereby adding the display content corresponding to that data record to the target page. For example, the page display component can call a partial refresh interface to generate new display content based on data records and to partially refresh the display area corresponding to the new display content on the target page. For instance, the partial refresh interface could be the `notifyItemRangeInserted` interface, which refreshes the new area on the target page based on the starting insertion position and number of insertions of the new display content. Based on this, the page display component does not need to rebuild or refresh the entire target page; instead, it only updates the local area corresponding to the new display content. This reduces the amount of rendering data during the page refresh process, lowers page refresh overhead, reduces stuttering or flickering caused by rebuilding the entire list, and improves the display stability of the target page when adding display content in batches.

[0054] Based on this disclosure, data can be connected between the data loading side and the page display side through index range. This avoids repeatedly transmitting a large number of data records during the batch callback process, reduces the transmission and memory pressure during the data callback process, and enables the target page to be updated stably in batches based on the data records in the cache management component.

[0055] In some embodiments of this disclosure, the page display component is used to maintain a display data set corresponding to the target page, the display data set including a content loading identifier. Based on this, updating the display content of the target page by the page display component according to data records within an index range may include the following steps: Step 2021: Remove the content loading flag from the display data set using the page display component; Step 2022: Append the data records within the index range to the display data set, wherein the append position of the data record in the display data set is the position in the display data set before the content loading identifier is removed; Step 2023: The page display component generates new display content for the target page based on the data records appended to the display data set.

[0056] Specifically, the page display component maintains a display data set corresponding to the target page, which provides the data basis for the display list of the target page. The display data set may include data records or content loading identifiers. The content loading identifier, as a placeholder, can be used to indicate that there are still data records to be loaded or displayed on the target page.

[0057] When the page display component updates the content of the target page based on data records within the index range, it can first determine the position of the content loading identifier in the display data set and remove the content loading identifier from the display data set. Subsequently, the data records within the index range obtained from the cache management component are appended to the display data set.

[0058] For example, if a content loading flag is set at the end of the displayed data set, the data record corresponding to the current batch can be appended at the end.

[0059] Optionally, the content loading indicator is not limited to being placed at the end of the displayed data set; it can also be placed at a specified position within the displayed data set to indicate the data loading status. The display format of the content loading indicator can be set according to the page type of the target page, for example, it can be a text tooltip, a progress indicator, a blank placeholder, or a graphic tooltip.

[0060] After appending the data record, the page display component can determine the newly added data record from the display data set and generate new display content based on it. The new display content refers to page content that can be displayed on the target page, such as list item text, icons, status labels, time information, or a combination of the above.

[0061] In this disclosure, by setting a content loading flag, newly added display content can be accurately placed into the append-to-be-added position of the display data set, thus maintaining a clear sequential relationship between the data record management process and the display content generation process.

[0062] In some embodiments of this disclosure, after appending the data records within the index range to the display data set, and before refreshing the page display content based on the newly added data records in step 2023, step 301 may be included: if there is unloaded data in the cache management component, the content loading identifier is added to the target position of the display data set by the page display component.

[0063] Specifically, after the page display component appends the display content corresponding to the data records within the current index range to the display list, it can further determine whether there is still unloaded data in the cache management component, that is, subsequent data records that have been managed by the cache management component but have not yet been appended to the display list by the page display component.

[0064] For example, after the content to be displayed in the current batch is appended, the page display component can determine whether there is still unloaded data in the cache management component based on the total number of data records in the cache management component and the number of data records that have been appended to the display list.

[0065] If there is unloaded data in the cache management component, it indicates that the target page still has subsequent data records that need to be converted into display content. In this case, the page display component can add a content loading indicator at the target position of the display data set. Optionally, the target position can be the end of the display data set or the end position formed after the current batch of data records is appended. After the content loading indicator is added to the display data set, it can serve as a reference position for appending subsequent display content and can be used to generate loading prompt content on the target page.

[0066] When new data records need to be appended to the display list, the content loading indicator can be removed first, and then the new data record can be appended to the position where the content loading indicator was originally located. It's understandable that if the cursor does not have any unread data records, then the content loading indicator does not need to be added.

[0067] Based on this disclosure, the content loading identifier, as a temporary identifier, can provide a location basis for the appending position of the next batch of data records in the displayed data set. Simultaneously, the content loading identifier can also provide loading status prompts on the target page, indicating that more data records need to be loaded, allowing users to perceive it as a natural increase in displayed content and improving the user experience.

[0068] Furthermore, by first appending the current batch of data records and then adding a content loading flag based on whether there is any unloaded data, the content loading flag can be avoided being sandwiched between the current batch of data records, reducing jumps, flickering, or abnormal end states during the content update process of the target page, and also improving the display stability of the target page during the batch loading process.

[0069] After adding a content loading flag at the target location of the display data set, execution can continue without going through step 2023. The page display component can then call the partial refresh interface to partially refresh the newly added data records in the display data set and the display area corresponding to the content loading flag.

[0070] In this disclosure, by adding a content loading flag first and then performing a partial refresh, the target page can be updated based on the updated display data set, avoiding lag in the display of the content loading flag or inaccurate refresh position.

[0071] In some embodiments of this disclosure, during the process of continuously reading data records from the database based on a cursor and updating the display content of the target page in batches according to a second preset quantity, there may be a situation where the number of data records read in the last instance is less than the second preset quantity. Based on this, the method may further include the following steps: when reading data records from the database ends, and there are still data records in the cache management component that have not been used to update the display content of the target page, update the display content of the target page according to the data records that have not been used to update the display content of the target page.

[0072] Specifically, when finishing reading data records from the database, the data loading component can determine whether there are still data records in the cache management component that have not been used to update the display content of the target page. For example, the reading of data records from the database ends when the cursor has traversed to the end of the query results, or when all data records in the database corresponding to the target page have been read.

[0073] If it is determined that all data records in the database have been read, and there are still data records in the cache management component that have not been used to update the display content of the target page, then update the display content of the target page based on those data records.

[0074] Therefore, even if the number of data records in this part is less than the second preset number, this part of the data records can be directly used as the last batch of data records to generate new display content for the target page, and the new display content can be added after the existing display content of the target page.

[0075] For example, if the second preset quantity is 500 records, after multiple batch updates in the database, there are 120 records remaining that have not been updated. At this point, since all data records in the database have been read, no new data records will be read. Therefore, the display content of the target page can be updated directly based on these 120 data records without waiting for the quantity to reach 500.

[0076] Based on this disclosure, all data records in the database corresponding to the target page can be used to generate the display content of the target page, avoiding omissions due to insufficient data records in the last batch compared to the second preset number.

[0077] Based on this disclosure, from the user's perspective, when a user opens the data list page, the target page does not need to wait for all data records to load. Instead, it generates and displays the first screen content as soon as the number of data records required for the first screen reaches the preset amount, allowing the user to see the initial content of the list page in a short period of time.

[0078] As the user browses the data list, subsequent data records can continue to be read into the cache management component and updated to the data list in batches according to a preset batch size. For the user, the list content appears to increase gradually and continuously during browsing, without requiring a noticeable wait for subsequent data to load completely.

[0079] When a user quickly scrolls through the data list, the page display component can retrieve the corresponding data records from the cache management component and generate the display content as subsequent data records are gradually read into the cache management component. This reduces blank display areas or loading wait prompts caused by temporary requests for the next page of data, and improves the display continuity during the fast scrolling process.

[0080] When a user re-enters the data list page, if the corresponding data record already exists in the cache management component, the initial screen content can be generated directly based on the data record in the cache management component, and subsequent display content can continue to be updated in batches according to the preset batch quantity. Therefore, even in scenarios where the cache is hit, it is not necessary to transmit all cached data to the page display side at once, ensuring both the initial screen display speed and reducing the processing pressure caused by displaying a large amount of cached data centrally.

[0081] Corresponding to the page content loading method provided in this disclosure, this disclosure also provides a page content loading device. Specifically, in conjunction with... Figure 4As shown, the device includes a data acquisition module 401, a data processing module 402, and a content loading module 403.

[0082] The data acquisition module 401 is used to retrieve the cursor corresponding to the target page from the database in response to the loading request of the target page; Data processing module 402 is used to read the data record pointed to by the cursor into the cache management component; The content loading module 403 is used to generate the display content of the target page based on the first preset number of data records when the number of data records read into the cache management component reaches the first preset number corresponding to the target page.

[0083] In some embodiments of this disclosure, the content loading module 403 is further configured to update the display content of the target page according to the newly added second preset number of data records whenever a second preset number of data records are added to the data records read from the cache management component.

[0084] In some embodiments of this disclosure, the content loading module 403 is further configured to update the display content of the target page based on the data records not used to update the display content of the target page when reading data records from the database is finished and there are still data records in the cache management component that have not been used to update the display content of the target page.

[0085] In some embodiments of this disclosure, each batch of second preset number of data records includes a start index and an end index corresponding to the current batch of data; The content loading module 403 is also used to obtain data records within the corresponding index range from the cache management component based on the start index and the end index through the page display component; The content loading module 403 is also used to update the display content of the target page according to the data records within the index range through the page display component.

[0086] In some embodiments of this disclosure, the page display component is used to maintain a display data set corresponding to the target page, the display data set including a content loading identifier; The content loading module 403 is further configured to remove the content loading identifier from the display data set through the page display component; and to append data records within the index range to the display data set, wherein the appended position of the data records in the display data set is the position in the display data set before the content loading identifier is removed; The content loading module 403 is also used to generate new display content for the target page by means of the page display component based on the data records appended to the display data set.

[0087] In some embodiments of this disclosure, the content loading module 403 is further configured to add the content loading identifier to the target location of the display data set by the page display component when there is unloaded data in the cache management component.

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

[0089] Figure 5 A schematic block diagram of an example electronic device 500 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.

[0090] like Figure 5 As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

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

[0092] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 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 501 performs the various methods and processes described above, such as the page content loading method. For example, in some embodiments, the page content loading method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the page content loading method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the page content loading method by any other suitable means (e.g., by means of firmware).

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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).

[0097] 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 implementations 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.

[0098] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, distributed system servers, or servers incorporating blockchain technology.

[0099] It should be understood that the various forms of processes shown above can be used to reorder, 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.

[0100] 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 loading page content, comprising: In response to a loading request for the target page, retrieve the cursor corresponding to the target page from the database; The data record pointed to by the cursor is read into the cache management component; If the number of data records read into the cache management component reaches the first preset number corresponding to the target page, the display content of the target page is generated based on the first preset number of data records.

2. The method of claim 1, wherein, After the number of data records read into the cache management component reaches the first preset number corresponding to the target page, the method further includes: Whenever a second preset number of data records are added to the cache management component, the display content of the target page is updated according to the newly added second preset number of data records.

3. The method of claim 2, wherein, The method further includes: If reading data records from the database is completed, and there are still data records in the cache management component that have not been used to update the display content of the target page, then the display content of the target page is updated according to the data records that have not been used to update the display content of the target page.

4. The method of claim 2, wherein, Each batch of the second preset number of data records includes the starting index and the ending index corresponding to the current batch of data; The step of updating the display content of the target page based on the newly added second preset number of data records includes: The page display component retrieves data records within the corresponding index range from the cache management component based on the start index and the end index; The page display component updates the display content of the target page based on the data records within the index range.

5. The method of claim 4, wherein, The page display component is used to maintain a display data set corresponding to the target page, and the display data set includes a content loading identifier; The step of updating the display content of the target page based on the data records within the index range using the page display component includes: The content loading identifier is removed from the display data set by the page display component; and data records within the index range are appended to the display data set, wherein the appended position of the data record in the display data set is the position in the display data set before the content loading identifier is removed; The page display component generates new display content for the target page based on the data records appended to the display data set.

6. The method of claim 5, wherein, After appending data records within the index range to the display data set, the method further includes: If there is unloaded data in the cache management component, the page display component adds the content loading identifier to the target location of the display data set.

7. A page content loading device, comprising: The data acquisition module is used to retrieve the cursor corresponding to the target page from the database in response to the loading request of the target page; The data processing module is used to read the data record pointed to by the cursor into the cache management component; The content loading module is used to generate the display content of the target page based on the first preset number of data records when the number of data records read into the cache management component reaches the first preset number corresponding to the target page.

8. 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 that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

9. 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-6.

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