Data hot updating method and device, electronic equipment and computer readable storage medium

By using a hot data update method, the problem of time-consuming download of data package resources for project pages in the financial industry was solved. Through hash table matching and cache updates, data preparation before page loading was achieved, thus improving the user experience.

CN115878922BActive Publication Date: 2026-01-02CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211634463.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-01-02
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

In financial industry project pages, the downloading of data package resources and the page rendering process take a long time, resulting in increased user waiting time and affecting the user experience.

Method used

The data hot update method is used to obtain data packet information and match it with a preset packet information hash table. The local cache is searched, and if it does not exist, it is obtained from the server and the local cache is updated. Finally, the memory cache is updated to achieve data preloading.

Benefits of technology

Update data before the page loads to reduce user waiting time and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115878922B_ABST
    Figure CN115878922B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and provides a data hot updating method and device, electronic equipment and a computer readable storage medium, the method comprises the following steps: acquiring data packet information, wherein the data packet information comprises a data packet name; performing first matching processing on the data packet name and a preset packet information hash table to obtain data packet attribute information, wherein the data packet attribute information comprises local path address information; performing searching processing on the local path address information from a preset local cache to obtain data searching information; performing first data updating processing on the local cache in the case that the data searching information represents that corresponding data packets do not exist in the local cache; and performing second data updating processing on a preset memory cache based on the local cache after data updating. Through the technical scheme, the data can be hot updated before page loading, the time for waiting for page response loading by a user is saved, and good use experience is brought to the user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to, but are not limited to, the technical field of data updating, and in particular to a data hot updating method and device, an electronic device, and a computer readable storage medium. BACKGROUND

[0002] Currently, in some project pages of the financial industry, data package resources need to be downloaded, package resources need to be loaded, and the page needs to be rendered every time after entering the page, which requires a lot of time and increases the page startup time. For some resource packages with large business volume, if the data resource download is started after entering the page, the user needs to wait until the process is completed before seeing the specific business page, which brings a poor user experience. SUMMARY

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] To solve the problems mentioned in the background, the present application provides a data hot updating method, device, electronic device and computer readable storage medium, which can perform hot updating of data before page loading, save the user waiting time for page response loading, and bring a good user experience.

[0005] In a first aspect, the present application provides a data hot updating method, which comprises:

[0006] Obtaining data package information, wherein the data package information comprises a data package name;

[0007] Performing first matching processing on the data package name and a preset package information hash table to obtain data package attribute information, wherein the data package attribute information comprises local path address information;

[0008] According to the local path address information, performing lookup processing on a preset local cache to obtain data lookup information;

[0009] In a case where the data lookup information indicates that the corresponding data package does not exist in the local cache, performing first data updating processing on the local cache;

[0010] Performing second data updating processing on a preset memory cache based on the updated local cache.

[0011] According to some embodiments of the present application, the package information hash table comprises key value information, and the matching processing of the data package name and the preset package information hash table to obtain the data package attribute information comprises:

[0012] The data packet name is subjected to a second matching process with the key value information to obtain data packet matching information;

[0013] The data packet attribute information corresponding to the data packet matching information is extracted from the packet information hash table.

[0014] According to some embodiments of the present application, the local cache comprises a plurality of storage intervals, each corresponding to an interval address tag, and the data searching information is obtained by searching the preset local cache according to the local path address information, comprising:

[0015] The local path address information is subjected to a third matching process with the interval address tag to obtain the corresponding storage interval;

[0016] The data searching information is determined based on the corresponding storage interval.

[0017] According to some embodiments of the present application, when the data searching information indicates that the corresponding data packet does not exist in the local cache, the local cache is subjected to a first data updating process, comprising:

[0018] When the data searching information indicates that the corresponding data packet does not exist in the local cache, data packet configuration information is obtained from a preset server;

[0019] The data packet configuration information is subjected to a verification process to obtain data packet verification information;

[0020] When the data packet verification information indicates that the data packet verification is successful, the corresponding data packet is downloaded from the server;

[0021] The data content of the data packet is subjected to an information digest encryption process to obtain data string information;

[0022] The data string information is stored in the local cache.

[0023] According to some embodiments of the present application, the data string information is stored in the local cache, comprising:

[0024] The data string information is used as a hash value, and a corresponding data packet key value is added to the hash value to form a data addition list;

[0025] The data addition list is written into the local cache.

[0026] According to some embodiments of the present application, after the preset memory cache is subjected to a second data updating process based on the data updated local cache, the method further comprises:

[0027] Obtaining a preloaded data package configuration list from a server;

[0028] Updating a corresponding data package according to the preloaded data package configuration list;

[0029] Initializing a preloading component;

[0030] Preloading the updated data package based on the preloading component.

[0031] According to some embodiments of the present application, the data package includes a basic package and a service package, and the preloading the updated data package based on the preloading component includes:

[0032] Loading the basic package based on the preloading component;

[0033] After the basic package is loaded, loading the service package based on the preloading component.

[0034] In a second aspect, the embodiments of the present application further provide a data hot updating device, and the device includes:

[0035] A first processing module is configured to obtain data package information, wherein the data package information includes a data package name;

[0036] A second processing module is configured to perform first matching processing on the data package name and a preset package information hash table to obtain data package attribute information, wherein the data package attribute information includes local path address information;

[0037] A third processing module is configured to perform searching processing on a preset local cache according to the local path address information to obtain data searching information;

[0038] A fourth processing module is configured to perform first data updating processing on the local cache in a case where the data searching information indicates that corresponding data package does not exist in the local cache;

[0039] A fifth processing module is configured to perform second data updating processing on a preset memory cache based on the local cache after data updating.

[0040] In a third aspect, the embodiments of the present application further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the data hot updating method of the first aspect.

[0041] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are used to execute the data hot updating method of the first aspect.

[0042] According to the data hot updating method provided in the embodiments of the present application, at least the following beneficial effects are achieved: in the process of data hot updating, first, data packet information is acquired, wherein the data packet information comprises a data packet name; then, the data packet name is subjected to first matching processing with a preset packet information hash table, and data packet attribute information is obtained, wherein the data packet attribute information comprises local path address information; then, the local path address information is used to perform searching processing on a preset local cache, and data searching information is obtained; in the case that the data searching information indicates that the corresponding data packet does not exist in the local cache, first data updating processing is performed on the local cache; finally, second data updating processing is performed on a preset memory cache based on the local cache after data updating. Through the above technical solution, data hot updating can be performed before page loading, the time for waiting for page response loading by the user is saved, and good user experience is brought to the user. BRIEF DESCRIPTION OF DRAWINGS

[0043] The accompanying drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, and are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation to the technical solutions of the present application.

[0044] Figure 1 is a flowchart of a data hot updating method provided in an embodiment of the present application;

[0045] Figure 2 is a flowchart of acquiring data packet attribute information in the data hot updating method provided in an embodiment of the present application;

[0046] Figure 3 is a flowchart of acquiring data searching information in the data hot updating method provided in an embodiment of the present application;

[0047] Figure 4 is a flowchart of performing first data updating processing on the local cache in the data hot updating method provided in an embodiment of the present application;

[0048] Figure 5 is a flowchart of storing the data string information into the local cache in the data hot updating method provided in an embodiment of the present application;

[0049] Figure 6 is a flowchart of a data hot updating method provided in another embodiment of the present application;

[0050] Figure 7 is a flowchart of performing preloading processing on the updated data packet in the data hot updating method provided in another embodiment of the present application;

[0051] Figure 8is a schematic diagram of a data hot updating device provided by an embodiment of the present application;

[0052] Figure 9 is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0054] It should be noted that, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0055] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as understood by those skilled in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0056] At present, in some project pages of the financial industry, the data package resource needs to be downloaded, the package resource needs to be loaded, and the page needs to be rendered every time after entering the page, and the entire process needs to spend a lot of time, which increases the time of starting the page; for some resource packages with large business volume, if the data resource starts to be downloaded after entering the page, the user needs to wait until the process is executed, and then the specific business page can be seen, which brings a poor user experience to the user.

[0057] The application provides a data hot updating method and device, electronic equipment and a computer readable storage medium. In the process of data hot updating, first, data packet information is acquired, wherein the data packet information comprises a data packet name; then, the data packet name is subjected to first matching processing with a preset packet information hash table, and data packet attribute information is obtained, wherein the data packet attribute information comprises local path address information; then, the local path address information is used to search the preset local cache, and data search information is obtained; in the case that the data search information indicates that the corresponding data packet does not exist in the local cache, first data updating processing is performed on the local cache; finally, second data updating processing is performed on the preset memory cache based on the updated local cache. Through the above technical solution, data hot updating can be performed before page loading, the time for waiting for page response loading is saved, and good user experience is provided.

[0058] The data hot updating method provided by the application is related to the technical field of data processing. The data hot updating method provided by the application can be applied to a terminal, can be applied to a server end, and can also be software running in the terminal or the server end. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.; the server end can be configured as a separate physical server, can be configured as a server cluster or a distributed system composed of multiple physical servers, can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms; and the software can be an application for implementing the data hot updating method, but is not limited to the above forms.

[0059] The application can be used in many general or specific computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The application can also be practiced in a distributed computing environment in which tasks are performed by remote processing devices connected by a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0060] It should be noted that in various specific embodiments of the present application, when relevant processing needs to be performed on data related to the identity or characteristics of a user, such as user information, user behavior data, user history data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of such data will comply with relevant national and regional laws, regulations, and standards. In addition, when the embodiments of the present application need to obtain sensitive personal information of a user, the user's separate permission or separate consent will be obtained through a pop-up window or a jump to a confirmation page, and after obtaining the separate permission or separate consent of the user, the necessary user-related data for enabling the embodiments of the present application to function normally will be obtained.

[0061] The embodiments of the present application will be further described below with reference to the accompanying drawings.

[0062] As shown in Figure 1 , Figure 1 is a flowchart of a data hot update method provided by an embodiment of the present application. The data hot update method includes but is not limited to steps S100 to S500.

[0063] Step S100, obtaining data packet information, wherein the data packet information includes a data packet name;

[0064] Step S200, performing first matching processing on the data packet name and a preset packet information hash table to obtain data packet attribute information, wherein the data packet attribute information includes local path address information;

[0065] Step S300, performing search processing on the local path address information from a preset local cache to obtain data search information;

[0066] Step S400, in a case where the data search information indicates that the corresponding data packet does not exist in the local cache, performing first data update processing on the local cache;

[0067] Step S500, performing second data update processing on a preset memory cache based on the local cache after data update.

[0068] It should be noted that, in the process of data hot updating, first, the data packet information is acquired, wherein the data packet information includes a data packet name; then the data packet name is subjected to first matching processing with a preset packet information hash table, and then data packet attribute information is obtained, wherein the data packet attribute information includes local path address information; then the local path address information is used to perform searching processing from the preset local cache, and data searching information is obtained; in a case where the data searching information indicates that the corresponding data packet does not exist in the local cache, first data updating processing is performed on the local cache; finally, second data updating processing is performed on the preset memory cache based on the local cache after data updating. Through the above technical solution, data hot updating can be performed before page loading, the time for the user to wait for page response loading is saved, and good use experience is brought to the user.

[0069] It should be noted that, in the packet switching network, a single message is divided into multiple data blocks, which are called packets, and contain the address information of the sender and the receiver; these packets are then transmitted along different paths in one or more networks and recombined at the destination. The structure of the data packet is very complex; the data packet is mainly composed of "destination IP address", "source IP address", "net load data" and other parts, including packet header and packet body, the packet header is fixed length, the length of the packet body is indefinite, the length of each field is fixed, the packet header structure of the request data packet and the response data packet of both parties is consistent, except that the definition of the packet body is different. The network interface receives the data packet and distributes the data packet to the appropriate network layer protocol according to the information encoded in the link layer protocol header, and each protocol family must have one or more protocols to form the network layer, in this system, each network layer protocol has an input data packet queue assigned to it, the data packets received by a network interface are arranged in the input data packet queue of a protocol, and a software interrupt is sent to start network layer processing, the network interface module uses a similar queue to store data packets that are waiting to be transmitted.

[0070] It should be noted that the data packet information includes a data packet name, which can be understood as information for marking and distinguishing data packets, and has uniqueness in the whole network.

[0071] It should be noted that the hash table is also called a hash table, which is a data structure that directly accesses according to the key value. That is, it accesses the record by mapping the key value to a location in the table to speed up the search. The mapping function is called a hash function, and the array where the record is stored is called a hash table; Given a table, there will be a corresponding function, for any given key value, after the function is substituted, if the address containing the key in the table can be obtained, the table is called a hash table, and the function is a hash function. The lookup process of the hash table is basically the same as the table creation process; Some key codes can be directly found by the address converted by the hash function, and some key codes have conflicts at the address obtained by the hash function, and need to be found according to the method of handling conflicts.

[0072] It should be noted that the local cache is in the system, and some data has small data volume but is accessed very frequently. For such a scenario, the data needs to be put into the local cache of the application to improve the access efficiency of the system and reduce unnecessary database access. However, it should be noted that the cache occupies space and the cache invalidation strategy.

[0073] It should be noted that the local path address information is the address information of the data packet, and the data packet can be found through the address information. Among them, the data search information represents that the corresponding data packet does not exist in the local cache, that is, the corresponding data packet is not found in the corresponding storage interval of the local cache through the data search information. The first data update processing of the local cache is triggered.

[0074] It should be noted that after the first data update processing of the local cache, the second data update processing of the memory cache can also be performed according to the local cache after the first data update is completed. Among them, the memory cache has two characteristics, which are fast reading and timeliness; Among them, the fast reading is that the memory cache will directly store the compiled and parsed file into the memory of the process, occupying a certain memory resource of the process, so as to facilitate the fast reading of the next running use; The timeliness is that the cache timeliness is very short and will be released with the release of the process.

[0075] In some embodiments, as shown in FIG. Figure 2 The step S200 can include, but is not limited to, steps S210-S220.

[0076] Step S210, the second matching processing of the data packet name and the key value information obtains data packet matching information;

[0077] Step S220, based on the data packet matching information, the corresponding data packet attribute information is extracted from the packet information hash table.

[0078] It should be noted that in the process of the first matching processing, the second matching processing of the data packet name and the key value information can obtain the data packet matching information; and then the corresponding data packet attribute information can be extracted from the packet information hash table based on the data packet matching information.

[0079] It should be noted that the key value information includes a key value name and a key value, and the second matching processing of the data packet name and the key value name can obtain the data packet matching information; and the corresponding key value can be extracted from the packet information hash table as the data packet attribute information based on the data packet matching information.

[0080] In some embodiments, as shown in Figure 3 The local cache includes a plurality of storage intervals, and each storage interval corresponds to an interval address mark. The step S300 can include but is not limited to steps S310 to S320.

[0081] In step S310, the local path address information is matched with the interval address mark to obtain the corresponding storage interval.

[0082] In step S320, the data search information is determined based on the corresponding storage interval.

[0083] It should be noted that in the process of searching from the preset local cache according to the local path address information, the local path address information is matched with the interval address mark of the storage interval in the local cache to obtain the corresponding storage interval; and then the data search information is determined based on the corresponding storage interval.

[0084] It should be noted that the local cache is in the system. Some data has a small amount of data but is accessed very frequently. For this scenario, the data needs to be put into the local cache of the application to improve the access efficiency of the system and reduce unnecessary database access. However, it should be noted that the cache occupies space and the cache invalidation strategy.

[0085] It should be noted that the local cache includes a plurality of storage intervals, and each storage interval corresponds to an interval address mark, which is used to distinguish different storage intervals. The third matching processing of the local path address information and the interval address mark can select the corresponding storage interval, and then the data search information can be determined according to the selected storage interval.

[0086] It should be noted that the interval is any continuous block allocated to an object; the interval is also called expansion; because after the allocated interval is used up, new records must be inserted in the allocated new interval (i.e. expand some blocks); once the interval is allocated to an object (table, index and cluster), the interval cannot be allocated to other objects.

[0087] In some embodiments, as shown in Figure 4 The step S400 can include, but is not limited to, the step S410 and the step S450.

[0088] The step S410, in the case that the data searching information represents that the corresponding data packet does not exist in the local cache, obtaining the data packet configuration information from the preset server;

[0089] The step S420, performing the verification processing on the data packet configuration information to obtain the data packet verification information;

[0090] The step S430, in the case that the data packet verification information represents that the data packet verification is successful, downloading the corresponding data packet from the server;

[0091] The step S440, performing the information digest encryption processing on the data content of the data packet to obtain the data string information;

[0092] The step S450, storing the data string information to the local cache.

[0093] It should be noted that, in the process of performing the first data updating processing on the local cache, first, in the case that the data searching information represents that the corresponding data packet does not exist in the local cache, obtaining the data packet configuration information from the preset server; then, performing the verification processing on the data packet configuration information to obtain the data packet verification information; then, in the case that the data packet verification information represents that the data packet verification is successful, downloading the corresponding data packet from the server; then, performing the information digest encryption processing on the data content of the data packet to obtain the data string information; finally, storing the data string information to the local cache, so as to make the preparation for the subsequent business page loading.

[0094] It should be noted that, in the case that the data searching information represents that the corresponding data packet exists in the local cache, the corresponding data packet will not be downloaded again, and the data packet in the local cache is directly used, so that the business page can be displayed faster, the time for waiting for the page response loading is shortened, and the user has a good use experience.

[0095] It should be noted that the server is a targeted program. The so-called targeting is a program specially set up for a client; in principle, the server does not have computing power, because the server will simultaneously establish a connection with multiple clients, and if the server performs calculations, it will occupy a large amount of resources, thereby affecting the communication of other clients, so the server usually only has authentication and data transmission functions. The server side is for the client, and the service content is to provide resources to the client, save client data, etc.; the client can be any computer as long as it has a connection with the server and has been authorized by the server, it can use the services of the server; as can be understood now, the Baidu website is the server, and the computer being used is the client, which can use its services. The server is usually a high-level PC of the server level, so that when multiple clients access, there will be no delay or even data overflow.

[0096] It should be noted that the verification of the data packet configuration information can include verifying the version of the data packet, whether the current user is allowed to download, and the like; when the verification is successful, the corresponding data packet is downloaded from the server; then, the data content of the data packet is subjected to information digest encryption processing to obtain data string information; finally, the data string information is stored in the local cache.

[0097] It should be noted that the information digest is a fixed-length text obtained by processing data. The data digest algorithm is also known as a hash algorithm or a hash algorithm. The hash algorithm is a one-way algorithm, and a user can generate a unique hash value of a specific length for target information through the hash algorithm, but cannot obtain the target information from the hash value. Therefore, the hash algorithm is commonly used in scenarios such as non-restorable password storage and information integrity verification; generally, when performing digital signature, the hash algorithm needs to be used to calculate the information digest of the text first, and then the digest value is subjected to digital signature.

[0098] It should be noted that the process of downloading the corresponding data packet from the server can be that the client sends a download request to the server, the server receives the download request and responds to the request to send the corresponding data packet to the client, thereby achieving the download processing of the data packet.

[0099] In some embodiments, as shown in Figure 5 the above step S450 can include but is not limited to step S451 and step S452.

[0100] Step S451, the data string information is taken as a hash value, and a corresponding data packet key value is added to the hash value to form a data addition list;

[0101] Step S452, the data addition list is written into the local cache.

[0102] It should be noted that in the process of storing the data string information to the local cache, the data string information is first taken as a hash value and a corresponding data packet key value is added to the hash value to form a data addition list; and finally the data addition list is written into the local cache.

[0103] It should be noted that the data string information is taken as a hash value and a corresponding data packet key value is added to the hash value to form a data addition list; and finally the data addition list is written into the local cache, so as to make a good preparation for subsequent business page loading and save the time of subsequent page loading.

[0104] In some embodiments, as shown in Figure 6 After the above step S500 is executed, steps S610, S620, S630 and S640 can be further included but are not limited thereto.

[0105] Step S610, obtaining a preloading data packet configuration list from the server;

[0106] Step S620, updating the corresponding data packet according to the preloading data packet configuration list;

[0107] Step S630, initializing the preloading component;

[0108] Step S640, preloading the updated data packet based on the preloading component.

[0109] It should be noted that before the login business page is loaded, the preloading data packet configuration list can also be obtained from the server; the corresponding data packet can also be updated according to the preloading data packet configuration list; then the preloading component is initialized; and finally the updated data packet is preloaded based on the preloading component.

[0110] It should be noted that for some resource packets with large business packets or frequently accessed business pages by users, the preloading function can be enabled, the resources are downloaded in advance, the corresponding preloading component is created and the business packet is loaded, and when the specific business page is entered, the existing resources are directly used for rendering, thereby improving the user experience.

[0111] It can be understood that the preloading data packet configuration list is the data packet that needs to be preloaded for subsequent business page loading, and the corresponding data packet is updated in advance based on the preloading data packet configuration list, so as to make a good preparation for subsequent business page loading.

[0112] In some embodiments, as shown in Figure 7As shown, the data packet includes a base packet and a service packet, and the step S640 can include but is not limited to step S641 and step S642.

[0113] In step S641, the base packet is loaded based on the preloading component.

[0114] In step S642, the service packet is loaded based on the preloading component after the base packet is loaded.

[0115] It should be noted that in the process of preloading the updated data packet based on the preloading component, the base packet is first loaded based on the preloading component, and then the service packet is loaded based on the preloading component after the base packet is loaded.

[0116] It should be noted that in the process of loading the data packet, the base packet is first loaded, and then the service packet is loaded based on the base packet being loaded. The base packet can be a basic data packet required for displaying a certain service page, and the service packet is a specific data packet required for displaying a certain service page.

[0117] In addition, as shown, Figure 8 An embodiment of the present application further provides a data hot updating device 10, which comprises:

[0118] A first processing module 100 is configured to acquire data packet information, wherein the data packet information comprises a data packet name.

[0119] A second processing module 200 is configured to perform first matching processing on the data packet name and a preset packet information hash table to obtain data packet attribute information, wherein the data packet attribute information comprises local path address information.

[0120] A third processing module 300 is configured to perform searching processing on the preset local cache according to the local path address information to obtain data searching information.

[0121] A fourth processing module 400 is configured to perform first data updating processing on the local cache in a case where the data searching information indicates that the corresponding data packet does not exist in the local cache.

[0122] A fifth processing module 500 is configured to perform second data updating processing on the preset memory cache based on the updated local cache.

[0123] It should be noted that, in the process of data hot updating, first, the data packet information is acquired, wherein the data packet information includes a data packet name; then the data packet name is subjected to first matching processing with a preset packet information hash table, and then data packet attribute information is obtained, wherein the data packet attribute information includes local path address information; then the local path address information is used to perform searching processing from the preset local cache, and data searching information is obtained; in the case that the data searching information indicates that the corresponding data packet does not exist in the local cache, first data updating processing is performed on the local cache; finally, second data updating processing is performed on the preset memory cache based on the local cache after data updating. Through the above technical solution, data hot updating can be performed before page loading, the time for the user to wait for page response loading is saved, and good use experience is brought to the user.

[0124] It should be noted that, in the packet switching network, a single message is divided into multiple data blocks, which are called packets, and contain the address information of the sender and the receiver; these packets are then transmitted along different paths in one or more networks and recombined at the destination. The structure of the data packet is very complex; the data packet is mainly composed of "destination IP address", "source IP address", "net load data" and other parts, including packet header and packet body, the packet header is fixed length, the length of the packet body is indefinite, the length of each field is fixed, the packet header structure of the request data packet and the response data packet of both parties is consistent, except that the definition of the packet body is different. The network interface receives the data packet and distributes the data packet to the appropriate network layer protocol according to the information encoded in the link layer protocol header, and each protocol family must have one or more protocols to form the network layer, in this system, each network layer protocol has an input data packet queue assigned to it, the data packets received by a network interface are arranged in the input data packet queue of a protocol, and a software interrupt is sent to start network layer processing, and the network interface module uses a similar queue to store data packets that are waiting to be transmitted.

[0125] It should be noted that the data packet information includes a data packet name, which can be understood as information for marking and distinguishing data packets, and has uniqueness in the whole network.

[0126] It should be noted that the hash table is also called a hash table, which is a data structure that directly accesses according to the key value. That is, it accesses the record by mapping the key value to a position in the table to speed up the search. The mapping function is called a hash function, and the array where the record is stored is called a hash table; Given a table, there will be a corresponding function, for any given key value, after the function is substituted, if the address containing the key in the table can be obtained, the table is called a hash table, and the function is a hash function. The lookup process of the hash table is basically the same as the table creation process; Some key codes can be directly found by the address converted by the hash function, and some key codes have conflicts at the address obtained by the hash function, and need to be found according to the method of handling conflicts.

[0127] It should be noted that the local cache is in the system, and some data has small data volume but is accessed very frequently. For such a scenario, the data needs to be put into the local cache of the application to improve the access efficiency of the system and reduce unnecessary database access. However, it should be noted that the cache occupies space and the cache invalidation strategy.

[0128] It should be noted that the local path address information is the address information of the data packet, and the data packet can be found through the address information. Among them, the data search information represents that the corresponding data packet does not exist in the local cache, that is, the corresponding data packet is not found in the corresponding storage interval of the local cache through the data search information. The first data update processing of the local cache is triggered.

[0129] It should be noted that after the first data update processing of the local cache, the second data update processing of the memory cache can also be performed according to the local cache after the first data update is completed. Among them, the memory cache has two characteristics, which are fast reading and timeliness; Among them, the fast reading is that the memory cache will directly store the compiled and parsed file into the memory of the process, occupying a certain memory resource of the process, so as to facilitate the fast reading of the next running use; The timeliness is that the cache timeliness is very short and will be released with the release of the process.

[0130] The specific embodiment of the data hot updating device 10 is basically the same as the specific embodiment of the above-mentioned data hot updating method, and will not be repeated here.

[0131] In addition, as shown in Figure 9 An embodiment of the present application also provides an electronic device 700, which comprises a memory 720, a processor 710, and a computer program stored in the memory 720 and capable of running on the processor 710.

[0132] The processor 710 and the memory 720 can be connected through a bus or other means.

[0133] The non-transitory software programs and instructions required to implement the data hot update method of the above embodiments are stored in the memory 720, and when executed by the processor 710, perform the data hot update method of each of the above embodiments, for example, perform the method steps S100-S500 in Figure 1 , the method steps S210-S220 in Figure 2 , the method steps S310-S320 in Figure 3 , the method steps S410-S450 in Figure 4 , the method steps S451-S452 in Figure 5 , the method steps S610-S640 in Figure 6 , and the method steps S641-S642 in Figure 7 .

[0134] The apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.

[0135] In addition, one embodiment of the present application also provides a computer readable storage medium storing computer executable instructions, which are executed by a processor 710 or a controller, for example, a processor 710 in the above device embodiment, so that the above processor 710 executes the data hot update method in the above embodiments, for example, executes the method steps S100-S500 in Figure 1 , the method steps S210-S220 in Figure 2 , the method steps S310-S320 in Figure 3 , the method steps S410-S450 in Figure 4 , the method steps S451-S452 in Figure 5 , the method steps S610-S640 in Figure 6 , and the method steps S641-S642 in Figure 7 .

[0136] The above embodiments can be used in combination, and the modules with the same name in different embodiments can be the same or different.

[0137] The above-described embodiments of the application have been described in connection with what are presently considered to be the most practical and preferred implementations, it is to be understood that the application is not to be limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications and equivalent arrangements. In addition, there are many alternative ways of implementing the application. It is intended to cover all alternatives, modifications and equivalents. Additionally one of ordinary skill will recognize that some of the steps in the described embodiments can be order dependent, while some can be order independent. Likewise, some steps can be performed simultaneously, rather than sequentially, and some steps can be performed concurrently. Certain of the steps described herein can be grouped together and performed as a combined step from implementation to implementation, and that certain of steps described herein can alternatively be insolated or distributed as sub-steps from implementation to implementation. Other changes, modifications and variations are also possible in light of the teachings described herein, and it is therefore intended that the application encompass such changes, modifications and variations as fall within the scope of the appended claims. Moreover, unless specifically stated otherwise, it is intended that equivalents of aspects included in this specification and its teachings can be utilized as alternatives thereof, in which case the generic and specific description are deemed to be incorporated by reference.

[0138] Various embodiments in this application are described in progressive manner, and the same or similar parts between various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. Especially, for the device, equipment, computer readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0139] The device, equipment, computer readable storage medium and method provided by the embodiments of the application are corresponding, therefore, the device, equipment, non-volatile computer storage medium also has similar beneficial technical effects as the corresponding method, since the beneficial technical effects of the method have been described in detail above, therefore, the beneficial technical effects of the corresponding device, equipment, computer storage medium will not be described here.

[0140] In the 1990s, it was quite obvious to distinguish whether an improvement in a technology was in hardware (e.g., improvement in circuit structures of diodes, transistors, switches, etc.) or in software (improvement in method flow). However, as technology has evolved, many improvements in method flow today can be considered as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structures by programming the improved method flow into hardware circuits. Therefore, it cannot be said that an improvement in a method flow cannot be implemented by hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming it, rather than by asking a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented by "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, which is called a hardware description language (HDL), and there are many such languages, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that, as long as the method flow is logically programmed in the above-mentioned hardware description languages and programmed into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.

[0141] The controller can be implemented in any suitable way, for example, the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, such as software or firmware, executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that, in addition to being implemented in pure computer readable program code, the controller can also be implemented to perform the same functions in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can even be considered as both a software module implementing a method and a structure within a hardware component.

[0142] The systems, apparatuses, modules or units illustrated by the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0143] For the sake of description, the above apparatuses are described in various units by functions respectively. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the embodiments of the present application.

[0144] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the embodiments of the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] The specification and drawings are illustrative and are not to be construed as limiting. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be apparent to those skilled in the art that various modifications and variations can be made to the present disclosure without departing from the spirit or scope of the disclosure. Thus, it is intended that the present disclosure cover the modifications and variations of this disclosure provided they come within the scope of the appended claims and their equivalents. Figure 1 one or more processes and / or blocks to implement the functions described herein. Figure 2 one or more processes and / or blocks to implement the functions described herein.

[0146] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the Figure 3 one or more processes and / or blocks to implement the functions described herein. Figure 4 one or more processes and / or blocks to implement the functions described herein.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the Figure 5 one or more processes and / or blocks to implement the functions described herein. Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 one or more processes and / or blocks to implement the functions described herein.

[0148] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0149] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. A

[0150] Computer-readable media includes permanent and non-permanent, movable and non-movable media, which can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0151] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0152] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The association relationship between the associated objects is described by "and / or", which means that there can be three kinds of relationships, for example, A and / or B, which can represent the cases of A alone, A and B together, and B alone. Wherein A, B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0153] Embodiments of the present application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. Embodiments of the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.

[0154] Various embodiments in the present application are described in progressive manner, and the same or similar parts between various embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. Especially, the system embodiments are described simply because they are basically similar to the method embodiments, and the relevant parts can be referred to the description of the method embodiments.

[0155] The above only describes the embodiments of the present application and is not intended to limit the present application. The present application can have various modifications and changes for those skilled in the art. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A data hot update method, characterized in that, The method comprises: acquiring packet information, wherein the packet information comprises a packet name; performing first matching processing on the packet name and a preset packet information hash table to obtain packet attribute information, wherein the packet attribute information comprises local path address information; performing lookup processing on the local path address information from a preset local cache to obtain data lookup information; in a case where the data lookup information indicates that corresponding data packets do not exist in the local cache, performing first data update processing on the local cache; performing second data update processing on a preset memory cache based on the local cache after data update; wherein the packet information hash table comprises key value information, and the first matching processing on the packet name and the preset packet information hash table to obtain packet attribute information comprises: performing second matching processing on the packet name and the key value information to obtain packet matching information; extracting corresponding packet attribute information from the packet information hash table based on the packet matching information; in a case where the data lookup information indicates that corresponding data packets do not exist in the local cache, performing first data update processing on the local cache comprises: in a case where the data lookup information indicates that corresponding data packets do not exist in the local cache, acquiring data packet configuration information from a preset server; performing verification processing on the data packet configuration information to obtain data packet verification information; in a case where the data packet verification information indicates that data packet verification is successful, downloading corresponding data packets from the server; performing information digest encryption processing on the data content of the data packets to obtain data string information; storing the data string information to the local cache; storing the data string information to the local cache comprises: taking the data string information as a hash value and adding a corresponding data packet key value to the hash value to form a data addition list; writing the data addition list to the local cache.

2. The data hot update method according to claim 1, characterized in that, The local cache comprises a plurality of storage intervals, and each storage interval corresponds to an interval address marker, and the lookup processing on the local path address information from the preset local cache to obtain data lookup information comprises: performing third matching processing on the local path address information and the interval address marker to obtain corresponding storage intervals; determining the data lookup information based on the corresponding storage intervals.

3. The data hot update method of claim 1, wherein, After the second data update processing on the preset memory cache based on the local cache after data update, the method further comprises: acquiring a preloaded data packet configuration list from a server; performing update processing on corresponding data packets according to the preloaded data packet configuration list; initializing a preloading component; performing preloading processing on the updated data packets based on the preloading component.

4. The data hot update method according to claim 3, characterized in that, The data packets comprise basic packets and service packets, and the preloading processing on the updated data packets based on the preloading component comprises: loading the basic packets based on the preloading component; After the base package is loaded completely, the service package is loaded based on the preloading component.

5. A data hot update apparatus characterized by comprising: The device comprises: A first processing module is configured to acquire data package information, wherein the data package information comprises a data package name. A second processing module is configured to perform first matching processing on the data package name and a preset package information hash table to obtain data package attribute information, wherein the data package attribute information comprises local path address information. A third processing module is configured to perform searching processing on the local cache based on the local path address information to obtain data searching information. A fourth processing module is configured to perform first data updating processing on the local cache in a case where the data searching information indicates that the corresponding data package does not exist in the local cache. A fifth processing module is configured to perform second data updating processing on a preset memory cache based on the data updated local cache. The package information hash table comprises key value information, and the first matching processing of the data package name and the preset package information hash table to obtain the data package attribute information comprises: Second matching processing of the data package name and the key value information to obtain data package matching information; Extraction of the corresponding data package attribute information from the package information hash table based on the data package matching information; The first data updating processing on the local cache in a case where the data searching information indicates that the corresponding data package does not exist in the local cache comprises: Acquisition of data package configuration information from a preset server in the case where the data searching information indicates that the corresponding data package does not exist in the local cache; Verification processing of the data package configuration information to obtain data package verification information; Downloading of the corresponding data package from the server in a case where the data package verification information indicates that the data package verification is successful; Information digest encryption processing of data content of the data package to obtain data string information; Conversion of the data string information to the local cache; The conversion of the data string information to the local cache comprises: Taking the data string information as a hash value and adding a corresponding data package key value to the hash value to form a data addition list; Writing of the data addition list to the local cache.

6. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data hot updating method of any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer executable instructions are used to execute the data hot updating method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Sharing tuples across independent coordination namespace systems

    US20210194958A1

  • Method, device and apparatus for improving execution efficiency of database appliance, and medium

    WO2021179782A1