Data updating method, device and storage medium
By automatically scanning and updating the data identifiers of data nodes, the problem of cumbersome manual operations in the existing technology is solved, and efficient data updating is achieved.
Patent Information
- Application Number
- CN202011286171.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2040-11-17
AI Technical Summary
In the prior art, data updating requires manual operation by the user, which is cumbersome and inefficient.
By obtaining the target organization information table, scanning the data identifiers of the data nodes to determine the data nodes to be updated, and automatically updating the data identifiers based on the target data content.
It realizes automatic updating of data in the entire target information table when the preset update time is reached, significantly improving data update efficiency.
Smart Images

Figure CN112328616B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data updating method, device and storage medium. Background Art
[0002] In daily life, some data will be stored based on needs, and some data will change with time and other factors. For example, when a new semester starts, the school information table stored in the campus communication application may need to be updated. The updated data information may include the grade information and class information of students and faculty members. In the existing technology, students and faculty members can manually update the data information on the campus communication application.
[0003] During the research and practice of the prior art, the inventors of the present application found that the prior art requires manual operation by the user, which is cumbersome and has low data updating efficiency. Summary of the Invention
[0004] The embodiments of the present application provide a data updating method, device, and storage medium, which can improve the efficiency of data updating.
[0005] This embodiment of the present application provides a data updating method, including:
[0006] Obtaining a target organization information table, wherein the target organization information table includes a plurality of data nodes, and the data nodes include data identifiers;
[0007] When it is detected that the current time matches the preset update time, scanning the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all the data nodes;
[0008] Determine the target data content corresponding to the data node to be updated;
[0009] Based on the target data content, the to-be-updated data identifier of the to-be-updated data node is updated.
[0010] Accordingly, the present application provides a data updating device, comprising:
[0011] An acquisition module, configured to acquire a target organization information table, wherein the target organization information table includes a plurality of data nodes, and each data node includes a data identifier;
[0012] a scanning module configured to scan data identifiers of data nodes in the target organization information table to determine a data node to be updated from all data nodes when detecting that the current time matches a preset update time;
[0013] A determination module, configured to determine target data content corresponding to the data node to be updated;
[0014] An updating module is used to update the to-be-updated data identifier of the to-be-updated data node based on the target data content.
[0015] In some embodiments, the scanning module includes a determination submodule and a scanning submodule, wherein:
[0016] A determination submodule, used to determine the identifier of the data to be updated;
[0017] The scanning submodule is configured to scan the data identifiers of the data nodes in the target organization information table to determine the data node to be updated that contains the data identifier to be updated from all the data nodes.
[0018] In some embodiments, the determination submodule is specifically configured to:
[0019] Display update prompt information of the target organization information table;
[0020] Determine the identifier of the data to be updated of the target organization information table, wherein the identifier of the data to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
[0021] In some embodiments, the preset mapping relationship is a mapping relationship between a data identifier and data content, and the determination module includes an identifier submodule and a content submodule, wherein:
[0022] An identification submodule, configured to determine a target data identification of the data node to be updated;
[0023] The content submodule is used to determine the target data content of the data node to be updated according to a preset mapping relationship and the target data identifier.
[0024] In some embodiments, the identification submodule is specifically configured to:
[0025] Based on a preset identifier update strategy and the identifier of the data to be updated, a target data identifier of the data node to be updated is determined.
[0026] In some embodiments, the determination module is specifically configured to:
[0027] Obtaining the data content to be updated of the data node to be updated;
[0028] Based on a preset content update strategy and the data content to be updated, target data content of the data node to be updated is determined.
[0029] In some embodiments, the data updating device further includes:
[0030] A request module, configured to receive a data content viewing request, wherein the data content viewing request is a viewing request information of an object for an updated data node in an updated target organization information table;
[0031] A content module, configured to determine the data content corresponding to the data identifier of the updated data node based on the preset mapping relationship;
[0032] The content output module is used to output the data content of the updated data node.
[0033] In some embodiments, the data updating device further includes:
[0034] The message output module is used to output a data update completion message, wherein the data update completion message is used to prompt the object that the data update of the target organization information table has been completed.
[0035] In some embodiments, the update module is specifically configured to:
[0036] Determining a target data identifier corresponding to the target data content;
[0037] The to-be-updated data identifier of the to-be-updated data node is replaced with the target data identifier.
[0038] Correspondingly, an embodiment of the present application further provides a storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any data updating method provided in the embodiment of the present application.
[0039] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any one of the data update methods provided in the embodiment of the present application is implemented.
[0040] The present application can obtain a target organization information table, which includes multiple data nodes, and the data nodes include data identifiers; when it is detected that the current time matches the preset update time, the data identifiers of the data nodes in the target organization information table are scanned to determine the data nodes to be updated from all data nodes; the target data content corresponding to the data nodes to be updated is determined; based on the target data content, the data identifiers to be updated of the data nodes to be updated are updated.
[0041] When the preset update time is reached, the present application determines the data nodes to be updated in the target organization information table by scanning the data identifiers of all data nodes in the target organization information table, and then updates the data nodes to be updated according to the target data content of the data nodes to be updated, thereby realizing the data update of all data identifiers to be updated in the entire target information table. Compared with the existing technology that requires manual operation by each user, the present application can significantly improve the data update efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 This is a schematic diagram of a scenario of a data update system provided in an embodiment of the present application;
[0044] Figure 2 Schematic diagram of the data updating method provided in the embodiment of the present application;
[0045] Figure 3 This is another flowchart of the data updating method provided in an embodiment of the present application;
[0046] Figure 4 This is another schematic diagram of the overall implementation principle of the data update method provided in an embodiment of the present application;
[0047] Figure 5 This is a schematic diagram of the implementation flow of the data updating method provided in the embodiment of the present application;
[0048] Figure 6 This is another implementation flow diagram of the data updating method provided in an embodiment of the present application;
[0049] Figure 7 Schematic diagram of the structure of the data updating device provided in the embodiment of the present application;
[0050] Figure 8 is another structural diagram of the data updating device provided in an embodiment of the present application;
[0051] Figure 9 It is a structural diagram of the computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described in this application are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0053] The embodiments of the present application provide a data updating method, device, and storage medium. Specifically, the embodiments of the present application can be integrated into a data updating system.
[0054] The data update system can be integrated into a computer device, which can include a terminal or a server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, smart TV, etc., but is not limited to these. The terminal and server can be connected directly or indirectly via wired or wireless communication, which is not limited in this application.
[0055] like Figure 1 As shown, Figure 1 The following is a schematic diagram of a data update system. The data update system can be integrated into a computer device. Specifically:
[0056] The computer device can first obtain the target organization information table, which includes multiple data nodes, and the data nodes include data identifiers. When it is detected that the current time matches the preset update time, the data identifiers of the data nodes in the target organization information table are scanned to determine the data nodes to be updated from all data nodes, and then determine the target data content corresponding to the data nodes to be updated. Finally, based on the target data content, the data identifiers to be updated of the data nodes to be updated are updated.
[0057] It should be noted that Figure 1 The scenario diagram of the data update system shown is only an example. The data update system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of data update devices and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
[0058] In this embodiment, the data updating method is described in detail. The data updating method can be integrated into a computer device, such as Figure 2 As shown, the data updating method may include:
[0059] 101. Obtain a target organization information table, where the target organization information table includes multiple data nodes, and the data nodes include data identifiers.
[0060] Among them, the target organization information table may include a data set that saves the relevant information of the target organization in data form. As the organization differs, the relevant information that can be saved in the target organization information table will also vary. For example, the target organization information table of an educational organization (such as a school, training institution, etc.) may include students' identity information, grade information, class information, communication information, etc. For another example, the target organization information table of an enterprise may include employees' department information, position information, years of work experience information, etc.
[0061] The relevant information in the target organization information table can also vary depending on the usage scenario. For example, in a target organization information table used to determine insurance information, the relevant information may include the insured's insurance type, years of payment, and payable fees. For another example, in a target organization information table used to verify event admission, the relevant information may include the gender, age, and admission verification identification of event participants. Specifically, the relevant information in the target organization information table can be flexibly configured in actual applications and will not be detailed here.
[0062] In order to facilitate efficient reading and modification of the data in the target organization information table, the target organization information table can be stored through a specific data structure, for example, it can be stored through a tree structure. The target organization information table may include multiple data nodes, and the data nodes may contain content with specific data information, such as data content, data identification, hash code value of data content, etc. In this application, the data node may include a data identification.
[0063] Among them, the data identifier can be information that uniquely identifies specific data content. The data identifier can be determined based on the data content. For example, the last 4 characters of the data content are taken as the data identifier of the data content. In this way, part of the data content can be directly understood through the data identifier; the data identifier can also be determined based on factors related to the data content. For example, the data identifier of the data content can be determined according to the acquisition time and acquisition order of the data content; the data identifier can also be determined randomly, etc., and can be flexibly set in actual application.
[0064] Specifically, the process of obtaining the target organization information table can include multiple methods, such as sending a request to a computer device including a server, and receiving the target organization information table returned by the computer device based on this request; for example, determining the storage address of the target organization information table, obtaining the target organization information table from the storage address, and so on.
[0065] For example, a target organization information table 1 is obtained from a server where a database is located. The target organization information table 1 includes a plurality of data nodes, and each data node includes a data identifier.
[0066] 102. When it is detected that the current time matches the preset update time, scan the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all the data nodes.
[0067] Among them, the preset update time may include a preset update time, which is the time for updating the target organization information table. The preset update time can be pre-entered by the creator or manager of the target organization information table, or it can be automatically set by the system. For example, the system can automatically set the preset update time based on the number of data nodes in the target organization information table, and so on.
[0068] Among them, the data node to be updated can be a data node whose data identifier needs to be changed. There can be multiple data nodes to be updated. According to the differences in the data identifiers in the data nodes to be updated, the data nodes to be updated can include multiple categories, and each category of data nodes to be updated can correspond to a data identifier.
[0069] Specifically, the current time matches the preset update time by being consistent with the preset update time. For example, if the preset update time is 2:00 am on X-month-X-year, then the current time is 2:00 am on X-month-X-year, which means that the current time matches the preset update time. The current time may be a time point within a specific time period before and after the preset update time, or the current time may match the preset update time. For example, if the preset update time is 17:30:30 pm on X-month-X-year, and the specific time period is 60 seconds, then if the current time is between 17:29:30 pm on X-month-X-year and 17:31:30 pm on X-month-X-year, then the current time matches the preset update time, and so on.
[0070] The current time can be obtained from a timing device at a set time interval, and the set time interval can be consistent, for example, the current time is obtained from the timing device every 10 seconds; the set time interval can also change periodically, for example, within 24 hours of a day, the time interval from 9:00 to 18:00 can be set to 3 seconds, and the time interval from 0:00 to 9:00 and from 18:00 to 24:00 can be set to 8 seconds; the set time interval can also vary with the differences in data nodes and data identifiers in the target organization information table, and can also vary with the differences in the geographical location when the present application is implemented, and so on.
[0071] Scanning the data identifiers of the data nodes in the target organization information table may include following different scanning rules based on the differences in the data structure used when storing the target organization information table. Scanning the data identifiers of the data nodes in the target organization information table may include obtaining the data identifier of each data node in the target organization information table, for example, or storing through a tree structure, obtaining the data identifier of each data node based on the breadth-first principle, etc.
[0072] After obtaining the data identifier of the data node, it can be determined whether the data node to which the data identifier belongs is a data node to be updated according to the data identifier. For example, it can be determined whether the data node to which the data identifier belongs is a data node to be updated according to the character length of the data identifier, etc.
[0073] For example, when it is detected that the current time 1 is consistent with the preset update time point O, the data identifier of each data node in the target organization information table 1 is obtained, and then the data node to be updated in the target organization information table is determined.
[0074] In some embodiments, the step of "scanning the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all data nodes" may include:
[0075] Determine the identifier of the data to be updated; scan the data identifiers of the data nodes in the target organization information table to determine the data node to be updated that contains the identifier of the data to be updated from all the data nodes.
[0076] Among them, the data identifier to be updated may include the data identifier that needs to be updated, and the data identifier to be updated may be at least one. The process of determining the data identifier to be updated may include determining the data identifier to be updated based on the characteristics of the organization recorded in the target organization information table. For example, if the grade information of middle school students in a school needs to be updated in the new school year, the original grade information of most students needs to be updated. At this time, the data identifier to be updated may be the data identifier of all grade information. Similarly, at the beginning of a new year, if the working years information of employees of a company needs to be updated, the original working years information of most employees needs to be updated. The data identifier to be updated can also be obtained directly, for example, from a server.
[0077] After obtaining the data identifier of the data node in the target organization information table by scanning, the data identifier can be compared with the data identifier to be updated. If the two are consistent, the data node can be determined to be the data node to be updated. If there are multiple data identifiers to be updated, the data identifier to be updated is compared with each data identifier to be updated in turn. If there is a data identifier to be updated that is consistent with the data identifier, the data node is determined to be the data node to be updated in the category to which the data identifier to be updated belongs.
[0078] For example, the data identifier to be updated may be received from the server: identifier 1, the data identifier of each data node in the target organization information table 1 may be scanned, and the data identifier of the data node may be compared with identifier 1 in turn to see if they are consistent. If they are consistent, the data node may be determined to be the data node to be updated.
[0079] In some embodiments, the step of “determining an identifier of data to be updated” may include:
[0080] Display update prompt information of the target organization information table; determine the data identifier to be updated of the target organization information table, the data identifier to be updated is determined based on the feedback information, and the feedback information is obtained by the object according to the update prompt information.
[0081] In some embodiments, the identifier of the data to be updated can be determined based on the information input by the object. For some data identifiers to be updated that have no obvious update rules, they can be manually input by the creator or manager of the target organization information table to determine the identifier of the data to be updated, and then determine the data node to be updated, and finally complete the update of the data node to be updated.
[0082] Among them, the update prompt information may include information for prompting the object to input the data content to be updated. The update prompt information can be displayed on the page in a concise and easy-to-understand form such as text, image, video, etc., to prompt the object to input feedback information according to the update prompt information. The data identifier to be updated can be determined based on the feedback information. The feedback information can be the data content to be updated or the data identifier to be updated. In order to obtain the data identifier to be updated, if the feedback information is the data content to be updated, the data identifier to be updated corresponding to the data content to be updated can be determined through the mapping relationship between the data content and the data identifier.
[0083] For example, the update prompt message "Please enter the data type to be updated" can be displayed on the page, and the received feedback information can be "grade data". Then the data node to which the data identifier type is "grade data" belongs can be determined as the data node to be updated.
[0084] 103. Determine the target data content corresponding to the data node to be updated.
[0085] Among them, the target data content can be data information that is easy to view and understand, the data identifier mainly plays a marking role, the data content can be content that records the meaning of the data in the form of text, etc., and the target data content is the updated data content of the node to be updated.
[0086] Specifically, there are many ways to determine the target data content corresponding to the data node to be updated. For example, the target data content input by the object can be received, and for example, the target data content can be automatically generated. When automatically generated, it can be generated according to the data identifier to be updated, the data content to be updated, etc., or it can be generated according to the set update time point of the target organization information table. For example, for the target organization information table, when the preset update time is in time period 1, the target data content is content 1, and when the preset update time is in time period 2, the target data content is content 2.
[0087] In some embodiments, the step of “determining the target data content corresponding to the data node to be updated” may include:
[0088] Determine the target data identifier of the data node to be updated; and determine the target data content of the data node to be updated based on the preset mapping relationship and the target data identifier.
[0089] Among them, the target data identifier can be information that uniquely identifies the target data, and the preset mapping relationship can be the correspondence between the data identifier and the data content. Therefore, after determining the target data identifier, the target data content corresponding to the target data identifier can be determined from the preset mapping relationship.
[0090] Specifically, there are multiple ways to determine the target data identifier of the data node to be updated, such as randomly extracting from the data identifier set to determine the target data from the data identifier set containing multiple candidate data identifiers; for example, receiving the target data identifier input by the object, etc.
[0091] A specific data identifier that is the same as the target data identifier can be determined from the data identifiers of the preset mapping relationship, and then the data content corresponding to the specific data identifier can be determined based on the correspondence between the data identifier and the data node in the mapping relationship. This data content is the target data content.
[0092] For example, it is determined that the target data identifier of the data node to be updated is identifier F, and the data content F corresponding to identifier F is determined from the preset mapping relationship 1. The data content F is the target data content.
[0093] In some embodiments, the step of “determining the target data identifier of the data node to be updated” may include:
[0094] Based on the preset identifier update strategy and the identifier of the data to be updated, the target data identifier of the data node to be updated is determined.
[0095] Among them, the preset identification update strategy can be a strategy for determining the target data identification obtained in advance. The preset identification update strategy can obtain the target data identification with the help of relevant information of the data node to be updated. The relevant information of the data node to be updated can be such as the storage information of the data node to be updated, the data identification to be updated of the data node to be updated, etc.
[0096] Specifically, the preset identifier update strategy can be a formula containing operation rules, such as performing addition and subtraction operations, exponential operations, etc. on the data identifier to be updated to obtain the target data identifier of the data node to be updated; the preset identifier update strategy can also be an update script, such as inputting the data identifier to be updated into the update script, and the update script can output the target data identifier; in actual use, the preset identifier update strategy can also be carried by a trained neural network model, etc., and can be flexibly selected according to actual needs.
[0097] For example, the identifier of the data to be updated is 1. By using the preset identifier update strategy, the identifier of the data to be updated is added with 2, and the target data identifier is obtained as 3.
[0098] In some embodiments, the step of “determining the target data content corresponding to the data node to be updated” may include:
[0099] Obtain the data content to be updated of the data node to be updated; and determine the target data content of the data node to be updated based on a preset content update strategy and the data content to be updated.
[0100] Specifically, if the data node to be updated contains the data content to be updated, it can be obtained directly from the data node to be updated. If the data node to be updated only contains the data identifier to be updated, the corresponding data content to be updated can be determined through the data identifier to be updated. This process can include multiple methods, such as calculating based on the data identifier to be updated according to the mapping relationship between the data identifier and the data content to obtain the data content to be updated, and so on.
[0101] Among them, the preset content update strategy may include a strategy for determining the target data content obtained in advance. The preset content update strategy is determined by receiving a target data content acquisition request from the node to be updated. For example, if the data node to be updated is the 30th data node that needs to obtain the target data content during this update process, the target data content of the data node to be updated can be determined to be 30.
[0102] The preset content update strategy can also be implemented with the help of the data content to be updated of the data node to be updated. For example, by performing relevant operations on the data content to be updated of the data node to be updated, the data content to be updated of the data node to be updated can be obtained. Specifically, the relevant operations may include addition, deletion, modification, etc. When obtaining the target data content through the preset content update strategy and the data content to be updated, it can be completed through code, model, etc.
[0103] For example, the data content 1 to be updated may be directly obtained from the storage address of the data node to be updated, and the data content 1 to be updated may be modified according to a preset content update strategy to obtain the target data content D of the data node to be updated.
[0104] 104. Based on the target data content, update the to-be-updated data identifier of the to-be-updated data node.
[0105] Specifically, the target update data content of the data node to be updated can be generated according to the target data content and the data content to be updated of the data node to be updated, and the target update data identifier can be determined based on the target update data content. Finally, the data identifier to be updated can be updated using the target update data identifier.
[0106] There can be multiple target data contents. If there is a specific correspondence between the target data content and the data node to be updated, the target data content corresponding to each data node to be updated can be determined based on the specific correspondence; if there is no specific correspondence between the two, the target data content corresponding to each data node to be updated can be determined from multiple target data contents by random sampling or other methods.
[0107] In some embodiments, the step of “updating the to-be-updated data identifier of the to-be-updated data node based on the target data content” may include:
[0108] Determine the target data identifier corresponding to the target data content; and replace the to-be-updated data identifier of the to-be-updated data node with the target data identifier.
[0109] The target data identifier corresponding to the target data content can be determined, for example, by the mapping relationship between the data content and the data identifier, and then the data identifier to be updated stored in the data node to be updated is replaced with the target data identifier to achieve the update of the data node to be updated.
[0110] In some embodiments, the data updating method may further include:
[0111] Receive a data content viewing request, which is an object's viewing request information for an updated data node in an updated target organization information table; determine the data content corresponding to the data identifier of the updated data node based on a preset mapping relationship; and output the data content of the updated data node.
[0112] The data node in the updated target organization information table may include an updated data identifier, and information may be viewed through this updated target organization information table. Specifically, a data content viewing request may be received, and the data content viewing request may include the data identifier of the updated data node that you want to view. Based on the data identifier and the preset mapping relationship, the mapping relationship here may include the correspondence between the data identifier and the data content, determine the data content of the updated data node, and output the data content to complete the information viewing process.
[0113] In the target organization information table or updated target organization information table of the present application, the data node contains a data identifier and usually does not contain data content. Compared with the data identifier, the data content usually requires more memory resources. When data update is required, the target data content and its corresponding target data identifier are determined through a predetermined preset mapping relationship, and the target data identifier is stored in the target organization information table to achieve the update of the target organization information table. When information viewing is required, it is only necessary to determine the data content corresponding to the data identifier to be viewed from the mapping relationship. This is simple and easy, and can significantly reduce the memory usage of the target organization information table.
[0114] For example, a data content viewing request may be received, which includes viewing request information of the updated data node A. According to the preset mapping relationship 1, the data content a of the data identifier of the updated data node is determined, and the data content a is output.
[0115] In some embodiments, the data updating method may further include:
[0116] Outputs a data update completion message, which is used to prompt the object that the data update of the target organization information table has been completed.
[0117] After the data update is completed, a data update completion message can be output. For example, the data update completion message in text form can be displayed on the page, and the text can be such as "Update completed!" For another example, the data update completion message in audio form can be played, and the audio can be a simple prompt tone or include voice, and the voice can be such as "Update completed".
[0118] When the preset update time is reached, the present application determines the data nodes to be updated in the target organization information table by scanning the data identifiers of all data nodes in the target organization information table, and then updates the data nodes to be updated according to the target data content of the data nodes to be updated, thereby realizing the data update of all data identifiers to be updated in the entire target information table. Compared with the existing technology that requires manual operation by each user, the present application can significantly improve the data update efficiency.
[0119] The method described in the above embodiment is further described in detail below with examples.
[0120] This embodiment will be described in detail by taking the data updating method integrated in a computer device as an example. In this embodiment, the target organization information table can be a school address book.
[0121] like Figure 3 As shown, Figure 3 : is a flow chart of a data updating method provided in an embodiment of the present application. The data updating method may include:
[0122] 201. A computer device obtains a target organization information table, where the target organization information table includes multiple data nodes, each of which includes a data identifier.
[0123] For example, a school address book can be obtained from a database. The school address book can organize information in the form of a multi-branch tree. The information may include school, grade, class, etc. The school address book in the form of a multi-branch tree may include multiple data nodes, and each data node includes a data identifier.
[0124] 202. The computer device determines an identifier of data to be updated.
[0125] For example, the computer device may determine, based on the time information, that the data identifiers to be updated are data identifiers for all grades.
[0126] 203. When it is detected that the current time matches the preset update time, the computer device scans the data identifiers of the data nodes in the target organization information table to determine the data node to be updated that contains the data identifier to be updated from all the data nodes.
[0127] For example, the computing device can detect whether the current time matches the preset update time. When the two match, it can scan the data identifier of each data node in the school address book and determine the data node containing the grade data identifier in the school address book as the data node to be updated.
[0128] 204. The computer device determines the target data content corresponding to the data node to be updated.
[0129] For example, the computer device may determine the to-be-updated data content corresponding to the to-be-updated data identifier (ie, the grade data identifier) of the to-be-updated data node, and further determine the target data content.
[0130] 205. The computer device determines the target data identifier of the data node to be updated according to the preset mapping relationship and the target data content.
[0131] For example, the preset mapping relationship may include a correspondence between a data identifier and data content, a target data content of a computer device, and a target data identifier corresponding to the target data content.
[0132] 206. The computer device replaces the to-be-updated data identifier of the to-be-updated data node with the target data identifier.
[0133] For example, in order to save memory usage of a school address book, the computer device may replace the identifier of the data to be updated in the school address book with the target data identifier to implement data updating.
[0134] In some embodiments, see Figure 4 The target organization information table can be a school address book. The school address book can include school information, grade information and class information. The grade information is updated. The data nodes to be updated can be two grade nodes. The data identifiers to be updated of the grade nodes to be updated can be Id=1 and Id=2 respectively. The upgrade time set by the user is received. When the upgrade time arrives, the target data content and its corresponding target data identifier (Id=2 and Id=3 respectively) can be determined according to the preset configuration table (i.e., the preset mapping relationship) and the data identifier to be updated. Finally, the data identifier to be updated of the data node to be updated is replaced with the target data identifier to realize the data update process.
[0135] For example, the specific implementation process can be found in Figure 5 The user specifies the upgrade time point and sends it to the grade upgrade service module. The grade upgrade service module can detect whether the upgrade time point has been reached. When the upgrade time point has been reached, the grade information can be upgraded (updated). The grade node to be upgraded (data node to be updated) is determined from the class address book architecture tree. After determining the target data content, the upgraded identifier (i.e., target data identifier) corresponding to the target data content is determined from the grade configuration table. The data identifier of the grade node is updated to the target data identifier, and the target data identifier is stored in the class address book architecture tree to realize data update.
[0136] See also Figure 6 The process of a user viewing the address book may include the user viewing the grade, and the class address book architecture tree determines the grade data content (grade name) corresponding to the grade data identifier to be viewed from the grade configuration table, and the class address book architecture tree can output the grade name for the user to view.
[0137] When the preset update time is reached, the present application determines the data nodes to be updated in the target organization information table by scanning the data identifiers of all data nodes in the target organization information table, and then updates the data nodes to be updated according to the target data content of the data nodes to be updated, thereby realizing the data update of all data identifiers to be updated in the entire target information table. Compared with the existing technology that requires manual operation by each user, the present application can significantly improve the data update efficiency.
[0138] To facilitate better implementation of the data update method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above data update method. The meanings of the terms are the same as those in the above data update method, and the specific implementation details can be referred to the description in the method embodiment.
[0139] like Figure 7 As shown, Figure 7 A structural diagram of a data updating device provided in an embodiment of the present application, wherein the data updating device may include an acquisition module 301, a scanning module 302, a determination module 303 and an update module 304, wherein:
[0140] An acquisition module 301 is configured to acquire a target organization information table, wherein the target organization information table includes a plurality of data nodes, each of which includes a data identifier.
[0141] The scanning module 302 is configured to scan the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all the data nodes when it is detected that the current time matches the preset update time;
[0142] Determination module 303, used to determine the target data content corresponding to the data node to be updated;
[0143] The updating module 304 is configured to update the to-be-updated data identifier of the to-be-updated data node based on the target data content.
[0144] In some embodiments, the scanning module includes a determination submodule and a scanning submodule, wherein:
[0145] A determination submodule, used to determine the identifier of the data to be updated;
[0146] The scanning submodule is used to scan the data identifiers of the data nodes in the target organization information table to determine the data node to be updated that contains the data identifier to be updated from all the data nodes.
[0147] In some embodiments, the determination submodule is specifically configured to:
[0148] Display update prompt information of the target organization information table;
[0149] The identifier of the data to be updated of the target organization information table is determined, where the identifier of the data to be updated is determined based on the feedback information, and the feedback information is obtained by the object according to the update prompt information.
[0150] In some embodiments, see Figure 8 The preset mapping relationship is the mapping relationship between the data identifier and the data content. The determination module 303 includes an identification submodule 3031 and a content submodule 3032, wherein:
[0151] Identification submodule 3031, used to determine the target data identifier of the data node to be updated;
[0152] The content submodule 3032 is used to determine the target data content of the data node to be updated according to the preset mapping relationship and the target data identifier.
[0153] In some embodiments, the identification submodule is specifically configured to:
[0154] Based on the preset identifier update strategy and the identifier of the data to be updated, the target data identifier of the data node to be updated is determined.
[0155] In some embodiments, the determination module is specifically configured to:
[0156] Get the data content to be updated of the data node to be updated;
[0157] Based on the preset content update strategy and the data content to be updated, the target data content of the data node to be updated is determined.
[0158] In some embodiments, the data updating device further includes:
[0159] A request module is used to receive a data content viewing request, where the data content viewing request is a request for viewing the updated data node in the updated target organization information table;
[0160] A content module, configured to determine the data content corresponding to the data identifier of the updated data node based on a preset mapping relationship;
[0161] The content output module is used to output the data content of the updated data node.
[0162] In some embodiments, the data updating device further includes:
[0163] The message output module is used to output a data update completion message. The data update completion message is used to prompt the object that the data update of the target organization information table has been completed.
[0164] In some embodiments, the update module is specifically configured to:
[0165] Determine the target data identifier corresponding to the target data content;
[0166] Replace the to-be-updated data identifier of the to-be-updated data node with the target data identifier.
[0167] In this application, the acquisition module 301 can first obtain the target organization information table, which includes multiple data nodes, and the data nodes include data identifiers. Then, the scanning module 302 can scan the data identifiers of the data nodes in the target organization information table when it detects that the current time matches the preset update time to determine the data nodes to be updated from all data nodes. The determination module 303 determines the target data content corresponding to the data nodes to be updated. Finally, the update module 304 updates the data identifiers to be updated of the data nodes to be updated based on the target data content.
[0168] When the preset update time is reached, the present application determines the data nodes to be updated in the target organization information table by scanning the data identifiers of all data nodes in the target organization information table, and then updates the data nodes to be updated according to the target data content of the data nodes to be updated, thereby realizing the data update of all data identifiers to be updated in the entire target information table. Compared with the existing technology that requires manual operation by each user, the present application can significantly improve the data update efficiency.
[0169] In addition, the embodiment of the present application also provides a computer device, which can be a terminal or a server, such as Figure 9 , which shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0170] The computer device may include one or more processing core processors 401, one or more computer readable storage media memories 402, a power supply 403, an input unit 404 and other components. Those skilled in the art will understand that Figure 9 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0171] Processor 401 is the control center of the computer device. It utilizes various interfaces and lines to connect the various components of the entire computer device. By running or executing software programs and / or modules stored in memory 402 and accessing data stored in memory 402, it performs various functions of the computer device and processes data, thereby performing overall testing of the computer device. Optionally, processor 401 may include one or more processing cores; preferably, processor 401 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interfaces, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 401.
[0172] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0173] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0174] The computer device may further include an input unit 404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0175] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the computer device will load the executable files corresponding to one or more application processes into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402 to implement various functions as follows:
[0176] Obtain a target organization information table, the target organization information table includes multiple data nodes, and the data nodes include data identifiers; when it is detected that the current time matches the preset update time, scan the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all data nodes; determine the target data content corresponding to the data nodes to be updated; based on the target data content, update the data identifiers to be updated of the data nodes to be updated.
[0177] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0178] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above embodiments.
[0179] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0180] To this end, an embodiment of the present application further provides a storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the data update methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0181] Obtain a target organization information table, the target organization information table includes multiple data nodes, and the data nodes include data identifiers; when it is detected that the current time matches the preset update time, scan the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all data nodes; determine the target data content corresponding to the data nodes to be updated; based on the target data content, update the data identifiers to be updated of the data nodes to be updated.
[0182] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0183] Since the computer program stored in the storage medium can execute the steps in any data updating method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data updating method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0184] The above is a detailed introduction to a data update method, device and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data updating method, characterized in that: include: Obtaining a target organization information table, the target organization information table including a plurality of data nodes, the data nodes including data identifiers but not data content; When it is detected that the current time matches the preset update time, scanning the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all the data nodes; Determining target data content corresponding to the data node to be updated, wherein the data content to be updated of the data node to be updated is obtained; and determining the target data content of the data node to be updated based on a preset content update strategy and the data content to be updated; Based on the target data content, updating the data identifier to be updated of the data node to be updated, wherein the target data identifier corresponding to the target data content is determined by a preset mapping relationship, and the data identifier to be updated of the data node to be updated is replaced with the target data identifier, wherein the preset mapping relationship is a mapping relationship between a data identifier and data content; Among them, the scanning of the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated from all data nodes includes: determining the data identifier to be updated; scanning the data identifiers of the data nodes in the target organization information table to determine the data nodes to be updated that contain the data identifier to be updated from all data nodes; wherein, if there are multiple data identifiers to be updated, the data identifier is compared with each of the data identifiers to be updated in turn, and if there is a data identifier to be updated that is consistent with the data identifier, it is determined that the data node is the data node to be updated in the category where the data identifier to be updated belongs, and the data nodes to be updated include multiple categories, and each category of the data nodes to be updated corresponds to a data identifier.
2. The method according to claim 1, characterized in that Determining the identifier of the data to be updated includes: Display update prompt information of the target organization information table; Determine the identifier of the data to be updated of the target organization information table, wherein the identifier of the data to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
3. The method according to claim 2, characterized in that Determining the target data content of the data node to be updated includes: Determine the target data identifier of the data node to be updated; The target data content of the data node to be updated is determined according to the preset mapping relationship and the target data identifier.
4. The method according to claim 3, characterized in that The determining the target data identifier of the data node to be updated includes: Based on a preset identifier update strategy and the identifier of the data to be updated, a target data identifier of the data node to be updated is determined.
5. The method according to claim 3, characterized in that The method further comprises: Receive a data content viewing request, wherein the data content viewing request is a request information for viewing an updated data node in an updated target organization information table; Based on the preset mapping relationship, determining the data content corresponding to the data identifier of the updated data node; Output the data content of the updated data node.
6. The method according to claim 1, characterized in that The method further comprises: Output a data update completion message, where the data update completion message is used to prompt the object that the data update of the target organization information table has been completed.
7. A data updating device, characterized in that: include: An acquisition module, configured to acquire a target organization information table, wherein the target organization information table includes a plurality of data nodes, each of which includes a data identifier but does not include data content; a scanning module configured to scan data identifiers of data nodes in the target organization information table to determine a data node to be updated from all data nodes when detecting that the current time matches a preset update time; a determination module, configured to determine target data content corresponding to the data node to be updated, wherein the data content to be updated of the data node to be updated is obtained; and the target data content of the data node to be updated is determined based on a preset content update strategy and the data content to be updated; an updating module, configured to update the to-be-updated data identifier of the to-be-updated data node based on the target data content, wherein the target data identifier corresponding to the target data content is determined by a preset mapping relationship, and the to-be-updated data identifier of the to-be-updated data node is replaced with the target data identifier, wherein the preset mapping relationship is a mapping relationship between a data identifier and data content; Wherein, the scanning module includes a determination submodule and a scanning submodule, wherein the determination submodule is used to determine the data identifier to be updated; the scanning submodule is used to scan the data identifier of the data node in the target organization information table to determine the data node to be updated containing the data identifier to be updated from all data nodes; wherein, if there are multiple data identifiers to be updated, the data identifier is compared with each of the data identifiers to be updated in turn, and if there is a data identifier to be updated that is consistent with the data identifier, the data node is determined to be the data node to be updated in the category where the data identifier to be updated is located, and the data nodes to be updated include multiple categories, and each category of the data nodes to be updated corresponds to a data identifier.
8. A storage medium, characterized in that: The storage medium stores a plurality of computer programs, and the computer programs are suitable for being loaded by a processor to execute the steps in any one of the methods according to claims 1 to 6.
9. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the methods according to claims 1 to 6.
Citation Information
Patent Citations
Method, apparatus and product of data updating
CN103430178A
Page configuration update method and device, server and medium
CN107783770A
Data synchronization method and device, storage medium and computer equipment
CN111917834A