CN113419762A - Data updating method and device and electronic equipment - Google Patents

Data updating method and device and electronic equipment Download PDF

Info

Publication number
CN113419762A
CN113419762A CN202110713320.1A CN202110713320A CN113419762A CN 113419762 A CN113419762 A CN 113419762A CN 202110713320 A CN202110713320 A CN 202110713320A CN 113419762 A CN113419762 A CN 113419762A
Authority
CN
China
Prior art keywords
data
updated
updating
association
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110713320.1A
Other languages
Chinese (zh)
Inventor
赵众集
周智华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glodon Co Ltd
Original Assignee
Glodon Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202110713320.1A priority Critical patent/CN113419762A/en
Publication of CN113419762A publication Critical patent/CN113419762A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of software development, in particular to a data updating method, a data updating device and electronic equipment, wherein the method comprises the steps of obtaining data to be updated and a preset incidence relation, wherein the preset incidence relation comprises an incidence relation among components and a data incidence relation based on the components; determining a related component related to the component where the data to be updated is located by utilizing the related relationship among the components; determining all relevant data related to the data to be updated in the relevant component by utilizing the data association relation; and updating the data to be updated based on all the associated data. Updating the data to be updated by using the preset incidence relation can ensure the updating accuracy; and the association relation is firstly utilized to determine the association component, and then the association data is determined in the association component, so that the performances of query and the like can be accelerated, and the data updating efficiency is improved.

Description

Data updating method and device and electronic equipment
Technical Field
The invention relates to the technical field of software development, in particular to a data updating method and device and electronic equipment.
Background
When modeling is performed by using modeling software, a large amount of data is generated, and in a scenario based on modeling software, there is often a certain correlation between data. For example, if the thickness of a wall is modified, the shape of the wall may also need to be modified. Not only does this happen, if there is also a window in the wall, then the thickness of the window needs to be modified. The scene also looks simpler, but the real scene is often much more complicated, and the shape of a wall is affected by many data, such as the thickness of the wall, the elevation of the top of the bottom of the wall, the offset of the top of the bottom, the coordinates of the starting point and the ending point, the deduction generated by other members such as doors and windows, and the like. When the shape of the wall is updated due to the modification of some of the data, the update affects the markings associated with the wall, another wall connected to the wall, floors penetrated by the wall, etc.
Therefore, it is preferable for the user that such data update by the association between data is automatically performed by software. On one hand, it is difficult for the user to know and remember all the association relationships, resulting in a condition of processing omission, so that inconsistent error data exists in the file. On the other hand, even if the user can know and remember all the associations, handling these data updates will bring a huge amount of work.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data updating method, an apparatus and an electronic device to solve the problem of data updating.
According to a first aspect, an embodiment of the present invention provides a data updating method, including:
acquiring data to be updated and a preset incidence relation, wherein the preset incidence relation comprises an incidence relation among components and a data incidence relation based on the components;
determining a related component related to the component where the data to be updated is located by utilizing the related relationship among the components;
determining all relevant data related to the data to be updated in the relevant component by utilizing the data association relation;
and updating the data to be updated based on all the associated data.
According to the data updating method provided by the embodiment of the invention, the data to be updated is updated by using the preset incidence relation, so that the updating accuracy can be ensured; and the association relation is firstly utilized to determine the association component, and then the association data is determined in the association component, so that the performances of query and the like can be accelerated, and the data updating efficiency is improved.
With reference to the first aspect, in a first implementation manner of the first aspect, the updating the data to be updated based on all the associated data includes:
determining data to be updated in all the associated data;
determining the calculation sequence of the data to be updated by using the data association relation;
and updating the data to be updated in sequence based on the calculation sequence so as to update the data to be updated.
According to the data updating method provided by the embodiment of the invention, the calculation sequence of the data to be updated is determined, and the data to be updated is sequentially updated by utilizing the calculation sequence, so that the accuracy of the updated data to be updated can be ensured.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining data to be updated in all the associated data includes:
judging whether the associated data is to be updated;
and when the associated data is to be updated, determining the associated data as the data to be updated.
According to the data updating method provided by the embodiment of the invention, the data to be updated is screened out from the associated data, and the associated data is updated first, so that the data used in calculation is ensured to be in a latest state, and the accuracy of the updated data is ensured.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the sequentially updating the data to be updated based on the calculation order to update the data to be updated includes:
acquiring the transaction submitting time to determine the updating time;
and sequentially updating the data to be updated based on the calculation sequence at the updating time so as to update the data to be updated.
The data updating method provided by the embodiment of the invention uniformly performs one-time updating calculation on the data to be updated at the time of transaction submission, so that the repeated calculation of the data can be avoided, and the data updating efficiency is improved.
With reference to the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, the sequentially updating the data to be updated based on the calculation order at the update timing to update the data to be updated includes:
acquiring the updating mode of each data to be updated;
and updating the data to be updated based on the calculation sequence and the updating mode at the updating time so as to update the data to be updated.
The data updating method provided by the embodiment of the invention adopts a corresponding updating mode aiming at each data to be updated, and can ensure that the updated data can meet the requirement.
With reference to the third implementation manner of the first aspect, in the fifth implementation manner of the first aspect, the sequentially updating the data to be updated based on the calculation order to update the data to be updated includes:
judging whether each data to be updated is in the latest state;
and when each piece of data to be updated is in the latest state, updating the data to be updated by utilizing the updating mode of the data to be updated.
According to the data updating method provided by the embodiment of the invention, when each data to be updated is in the latest state, the data to be updated is updated, so that the reliability of the updating result can be ensured.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the determining, by using the data association relationship, all association data in the association component related to the data to be updated includes:
determining first associated data which directly influences the data to be updated in the association component by utilizing the data association relation;
second associated data that directly affects the first associated data is then determined to determine all of the associated data.
According to the data updating method provided by the embodiment of the invention, all the associated data are determined by using a layer-by-layer diffusion mode, so that the comprehensiveness and the accuracy of the determined associated data are ensured.
According to a second aspect, an embodiment of the present invention further provides a data updating apparatus, including:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring data to be updated and a preset incidence relation, and the preset incidence relation comprises an incidence relation among components and a data incidence relation based on the components;
the first determination module is used for determining the related component related to the component where the data to be updated is located by utilizing the association relationship among the components;
the second determination module is used for determining all relevant data related to the data to be updated in the relevant component by utilizing the data association relation;
and the updating module is used for updating the data to be updated based on all the related data.
According to the data updating device provided by the embodiment of the invention, the data to be updated is updated by using the preset incidence relation, so that the updating accuracy can be ensured; and the association relation is firstly utilized to determine the association component, and then the association data is determined in the association component, so that the performances of query and the like can be accelerated, and the data updating efficiency is improved.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the data update method of the first aspect or any one of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the data updating method described in the first aspect or any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a diagram illustrating a predetermined association relationship according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 4 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 5 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 6 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 7 is a block diagram of a data update apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the data updating method provided in the embodiment of the present invention, for example, data to be updated is taken as an example, association relationships between components and data association relationships between components are used to determine association data that affects the data to be updated, and the data to be updated is updated based on the association data. For example, if the data to be updated is a, a is B + C, and C is D + E, then the data B, C, D and E are both associated data of the data to be updated a.
As to which data is affected after the subsequent data a to be updated is updated, no limitation is made to the data, and the data a to be updated may be set according to actual situations. In the embodiment of the present invention, only the update mode of the data a to be updated is described in detail.
In accordance with an embodiment of the present invention, there is provided a data update embodiment, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a data updating method is provided, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, fig. 1 is a flowchart of a data updating method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
and S11, acquiring the data to be updated and the preset incidence relation.
The preset incidence relation comprises incidence relation among the components and data incidence relation based on the components.
When a user modifies a certain component, the corresponding changed data in the component is called as data to be updated. When the data to be updated is updated, the state of the associated data affecting the data to be updated is also required to be combined, and if the associated data is updated, the data to be updated is also changed correspondingly. Therefore, when determining the association relationship, the preset association relationship needs to be acquired.
As described above, the preset association relationship includes two levels of association relationships, which are an association relationship between the components and a data association relationship based on the components. Wherein each member comprises at least one datum. The existence of an association relationship between components does not mean that an association relationship exists between all data of the components.
As shown in fig. 2, the arrow direction indicates the direction of the influence. The association relationship among the components comprises: member 1 is associated with member 3, member 2 is associated with member 3, member 3 is associated with member 5, and member 4 is associated with member 5. For example, the change of the member 3 is affected by the member 1. Specifically, data 1 for part 1 is related to data 4 for part 3, data 2 for part 2 is related to data 5 for part 3, data 3 for part 2 is related to data 5 for part 3, and so on.
The preset association relationship may be set according to business requirements, for example, a developer declares a data association relationship according to the business requirements. If it is said that a certain data is updated due to the influence of other data modification, a developer needs to declare that the data is influenced by which data in which components, that is, an association relationship between the components needs to be established and an association relationship between the components based on the data. For example, walls and windows, whose thickness data need to be correlated. There are countless walls and windows in the scene, but the thickness of each window in particular will only be related to the thickness of the wall to which it belongs.
Wherein the association is to determine which data the current data will be affected by. Alternatively, for user convenience, the user is only required to provide a direct relationship, such as a ═ B + C, and C ═ D + E, and a only needs to report the association of B and C, i.e., direct association, and does not need to report the association of D + E, i.e., indirect association.
And S12, determining the related component related to the component where the data to be updated is located by using the related relationship among the components.
After the electronic equipment acquires the data to be updated, the component where the data to be updated is located is determined, and then the associated component related to the component where the component to be updated is located is determined by using the association relationship between the components. The related components herein include directly related components and also include indirectly related components.
As shown in fig. 2, if the data to be updated is data 5, the component where the data 5 is located, i.e., component 3, is determined; the association relationship between the members is reused to identify the members associated with the member 3, which are the member 1 and the member 2.
And S13, determining all related data related to the data to be updated in the related component by using the data association relation.
After the electronic equipment determines the association component, all the associated data related to the data to be updated are determined in the association component by using the data association relation. Continuing with the above example, the associated members are member 1 and member 2, and the electronic device identifies data having a data association relationship with data 5 in member 1 and member 2, respectively, using the data association relationship. Namely data 2 and data 3. Therefore, data 2 and data 3 are determined as the associated data of data 5.
Specifically, as shown in FIG. 2, when the user operates the software, some data of the component is modified. If the data is data participating in the associated update, the data is called current data or data to be updated. The electronic device, upon receiving the modification, propagates the modification and collects the affected data. Upon receiving the data modification, the associated building block is found first. And then looking in the building block for data to be updated. If found, it can be assumed that this data is also about to be modified, and therefore the impact will continue to be propagated based on this found data. By means of the layer diffusion, all data needing to be updated are found.
And S14, updating the data to be updated based on all the associated data.
After the electronic device determines the associated data, the associated data may be updated according to actual requirements, and then the updated associated data is used to update the data to be updated. In the above example, the data 2 and the data 3 are related to the data 5, and then the data 2 and the data 3 need to be updated according to actual requirements, and then the data 5 needs to be updated by using the updated data 2 and the updated data 3.
Alternatively, the data 2 may be updated and then the data 5 may be updated, and the data 3 may be updated and then the data 5 may be updated.
The step will be described in detail below, and will not be described herein again.
According to the data updating method provided by the embodiment, the data to be updated is updated by using the preset incidence relation, so that the updating accuracy can be ensured; and the association relation is firstly utilized to determine the association component, and then the association data is determined in the association component, so that the performances of query and the like can be accelerated, and the data updating efficiency is improved.
In this embodiment, a data updating method is provided, which can be used in the above-mentioned electronic devices, such as a computer, a mobile phone, a tablet computer, etc., fig. 3 is a flowchart of the data updating method according to the embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
and S21, acquiring the data to be updated and the preset incidence relation.
The preset incidence relation comprises incidence relation among the components and data incidence relation based on the components.
Please refer to S11 in fig. 1, which is not described herein again.
And S22, determining the related component related to the component where the data to be updated is located by using the related relationship among the components.
Please refer to S12 in fig. 1, which is not described herein again.
And S23, determining all related data related to the data to be updated in the related component by using the data association relation.
Please refer to S12 in fig. 1, which is not described herein again.
And S24, updating the data to be updated based on all the associated data.
Specifically, S24 includes:
and S241, determining data to be updated in all the associated data.
All the associated data only indicate that the associated data can affect the data to be updated, but the associated data is not necessarily updated, and the associated data can affect the data to be updated only after the associated data is updated. For example, as shown in fig. 2, the associated data of the data 5 is data 2 and data 3. If data 2 and data 3 are not updated in the current update cycle, the data 5 is not affected by the data associated with data 5. Therefore, the data to be updated needs to be determined from the associated data.
In some optional implementations of this embodiment, the S241 includes:
(1) and judging whether the associated data is to be updated.
Specifically, when the electronic device updates certain data, the state of the data may be set to be updated. Accordingly, the electronic device can determine whether the associated data is to be updated by using the state of each associated data.
(2) And when the associated data is to be updated, determining the associated data as the data to be updated.
When an update calculates certain data, it is checked whether its associated data needs to be updated as well. If so, the associated data is updated first, so that the data used in the calculation is ensured to be in a latest state, and the accuracy of the updated data is ensured.
And S242, determining the calculation sequence of the data to be updated by using the data association relation.
If another data is needed to be used when one data update calculation is carried out, and the data is also in a state needing to be updated, the latter is guaranteed to be calculated first, and then the former is calculated. That is, when updating the calculation, it is necessary to ensure the correctness of the calculation order.
The calculation order is used to represent the hierarchical relationship between data, and as shown in fig. 2, taking data 7 as an example, data 7 is affected by data 4, data 5, and data 6, data 4 is affected by data 1, and data 5 is affected by data 2 and data 3. If the associated data of the data 7 is determined to be the data 4, the data 6 and the data 1. Then the calculation order starts with the data of the lowest layer until data 7 is reached. Specifically, the calculation order is: data 1-data 4 and data 6-data 7.
And S243, sequentially updating the data to be updated based on the calculation sequence so as to update the data to be updated.
After the calculation sequence is determined, the electronic equipment sequentially updates the data to be updated according to the calculation sequence, and after all the data to be updated are updated, the data to be updated are updated. The updating method can ensure that all the data to be updated are in the updated state when the data to be updated are updated.
For example, the calculation order is guaranteed by: when A is calculated, the association relation is found that A is associated with B, and then whether B needs to be updated or not is detected; if so, B is calculated first, C is found in the same way when B is calculated, and whether C needs to be calculated first is judged in the same way.
In order to ensure the correctness of the calculation result, the correctness of the calculation sequence needs to be achieved. As shown in fig. 4, before calculating a certain data, all the associated data are found first, whether the associated data need to be updated is determined, and if so, the associated data is updated first. And if all the related data are in the latest state, namely the updated state, updating the current data through calculation until all the data are updated.
In FIG. 4, if a circular dependency is found, a rollback of the transaction is performed. That is, this time, the user's operation is invalid and no change in data is generated. If the associated data is not in the updating state, the associated data needs to be updated first, i.e. the associated data needs to be updated. If all the associated data does not need to be updated, the current data is directly updated.
According to the data updating method provided by the embodiment, the calculation sequence of the data to be updated is determined, and the data to be updated is sequentially updated by using the calculation sequence, so that the accuracy of the updated data to be updated can be ensured.
In some optional implementations of this embodiment, the foregoing S243 may include:
(1) the timing of transaction commit is obtained to determine update timing.
The timing of the transaction submission, i.e. one transaction corresponds to one operation of the user. For example, many software have Undo (Ctrl + Z), which is the exact Undo of a transaction. The transaction submission can be regarded as that the user has modified the data to be modified in the operation, and the electronic device finds all the affected data through the data modified by the user later, performs update calculation uniformly, and then records all the modifications uniformly as one transaction (one operation).
(2) And sequentially updating the data to be updated based on the calculation sequence at the updating time so as to update the data to be updated.
A transaction may correspond to an operation, after which all modifications have occurred, at which point the update calculation is performed based on the operation. The data to be updated is uniformly updated once at the time of transaction submission, so that repeated calculation of the data can be avoided, and the data updating efficiency is improved.
For example, a and B, C are both related, and may be updated once after B, C update is completed. If B updates compute A and C updates compute A again, which is a duplicate computation, B, C avoids duplicate computation by updating A after updating.
The electronic equipment can automatically find the affected data and uniformly update the affected data at a proper time, so that the data is prevented from being updated repeatedly. Of course, the developer can also obtain the state of the data according to the requirement of the developer, that is, whether the data needs to be updated or not, and update the specified data in advance. The updating of the designated data in advance refers to that a developer updates the designated data in advance before automatic updating. After an update, if the data is not affected again, it will not be calculated in the automatic update.
As another optional implementation manner of this embodiment, the S243 may further include:
(1) and judging whether each data to be updated is in the latest state.
When updating certain data, the electronic device will detect whether its associated data needs to be updated as well. If so, the associated data is updated first, so that the data used in the calculation is ensured to be in a latest state.
(2) And when all the data to be updated are in the latest state, updating the data to be updated by utilizing the updating mode of the data to be updated.
When each data to be updated is in the latest state, the data to be updated is updated, so that the reliability of the updating result can be ensured.
In still other optional implementations of this embodiment, the S24 may further include:
(1) and acquiring the updating mode of each data to be updated.
The updating mode includes setting an updating calculator, or user modification, etc., and may specifically perform corresponding setting according to actual requirements.
For example, as shown in fig. 2, a data update calculator is provided in data 4 and data 5, and when data 4 or data 5 needs to be updated, the update calculator is used to perform update calculation. A data update calculator is not provided for the data 1, and it can be considered that this data is not updated by the calculator but is directly modified only by the operation of the user. Or the data only affects other data and is not affected by other data, and the like.
(2) And updating the data to be updated based on the calculation sequence and the updating mode at the updating time so as to update the data to be updated.
And updating the data to be updated by utilizing the calculation sequence and the corresponding updating mode at the updating time, and updating the data to be updated after all the data to be updated are updated.
And a corresponding updating mode is adopted for each data to be updated, so that the updated data can meet the requirement.
In this embodiment, a data updating method is provided, which can be used in the above-mentioned electronic devices, such as a computer, a mobile phone, a tablet computer, etc., fig. 5 is a flowchart of the data updating method according to the embodiment of the present invention, and as shown in fig. 5, the flowchart includes the following steps:
and S31, acquiring the data to be updated and the preset incidence relation.
The preset incidence relation comprises incidence relation among the components and data incidence relation based on the components.
Please refer to S11 in fig. 1, which is not described herein again.
And S32, determining the related component related to the component where the data to be updated is located by using the related relationship among the components.
Please refer to S12 in fig. 1, which is not described herein again.
And S33, determining all related data related to the data to be updated in the related component by using the data association relation.
Specifically, S33 includes:
s331, determining first associated data which directly influence data to be updated in the association component by using the data association relation.
As described above, when a user declares an association, it is all data that is directly related to the current data that is declared. Therefore, the electronic device determines first associated data directly influencing the data to be updated in the association component by using the data association relation.
S332, second associated data which directly affect the first associated data are determined, so that all associated data are determined.
And further, determining second associated data directly influencing the first associated data, and sequentially and continuously processing until all the associated data are determined.
And S34, updating the data to be updated based on all the associated data.
Please refer to S24 in fig. 3 for details, which are not described herein.
According to the data updating method provided by the embodiment, all the associated data are determined in a layer-by-layer diffusion mode, and the comprehensiveness and accuracy of the determined associated data are guaranteed.
As shown in FIG. 6, after the data needing to be updated is found, the framework is not updated immediately, but the data is collected uniformly. All collected data is automatically updated when a transaction commits. In order to ensure the correctness of the calculation during the data updating, it is necessary to ensure that the data used during the calculation are all in the latest state. Otherwise, the data calculated based on the data to be updated is likely to be an erroneous data.
The collected data are marked as modified in fig. 6, with the purpose of propagating the impact of the data. I.e. a data is marked as modified, and the electronic device is triggered to find the data affected by the data modification according to the mark. For example, a ═ B + C, and C ═ D + E. D is modified, and C is found to be associated with D, namely C needs to be updated. But if C needs to be updated it means that a also needs to be updated. Therefore, by marking C as modified, A will be found by C through the identification, and thus A is also updated. Here, the synchronization update is performed on all the affected data to ensure the real-time performance of the data.
In some optional implementations of this embodiment, the data updating method further includes automatically detecting an abnormal condition. For example, a serious exception includes a loop dependency, and when the loop dependency occurs, a transaction rollback is performed, that is, the current operation of the user is invalid. If a data is a minor error, such as an ambiguity in the data, the user manually sets a value to the data, and the data is marked to be updated, this may cause an ambiguity. That is, at this time, it cannot be determined whether the value manually set by the user is used as the criterion or the result of the update calculation is used as the criterion, and therefore, the update calculation of the data is not triggered currently.
In this embodiment, a data updating apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a data updating apparatus, as shown in fig. 7, including:
an obtaining module 41, configured to obtain data to be updated and a preset association relationship, where the preset association relationship includes an association relationship between components and a data association relationship based on the components;
a first determining module 42, configured to determine, by using the association relationship between the components, an associated component related to the component where the data to be updated is located;
a second determining module 43, configured to determine, by using the data association relationship, all associated data in the association component that is related to the data to be updated;
an updating module 44, configured to update the data to be updated based on all the associated data.
The data updating device provided by the embodiment updates the data to be updated by using the preset association relation, so that the updating accuracy can be ensured; and the association relation is firstly utilized to determine the association component, and then the association data is determined in the association component, so that the performances of query and the like can be accelerated, and the data updating efficiency is improved.
The data update apparatus in this embodiment is presented as a functional unit, where the unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-described functions.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the data updating apparatus shown in fig. 7.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 8, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, memory 54, at least one communication bus 52. Wherein a communication bus 52 is used to enable the connection communication between these components. The communication interface 53 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a standard wireless interface. The Memory 54 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 54 may alternatively be at least one memory device located remotely from the processor 51. Wherein the processor 51 may be in connection with the apparatus described in fig. 7, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 for performing any of the above-mentioned method steps.
The communication bus 52 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 52 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The memory 54 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 54 may also comprise a combination of the above types of memories.
The processor 51 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 51 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 54 is also used to store program instructions. The processor 51 may call program instructions to implement the data update method as shown in the embodiments of fig. 2 to 6 of the present application.
An embodiment of the present invention further provides a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the data updating method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for updating data, comprising:
acquiring data to be updated and a preset incidence relation, wherein the preset incidence relation comprises an incidence relation among components and a data incidence relation based on the components;
determining a related component related to the component where the data to be updated is located by utilizing the related relationship among the components;
determining all relevant data related to the data to be updated in the relevant component by utilizing the data association relation;
and updating the data to be updated based on all the associated data.
2. The data updating method according to claim 1, wherein the updating the data to be updated based on all the associated data comprises:
determining data to be updated in all the associated data;
determining the calculation sequence of the data to be updated by using the data association relation;
and updating the data to be updated in sequence based on the calculation sequence so as to update the data to be updated.
3. The data updating method according to claim 2, wherein the determining the data to be updated in all the associated data comprises:
judging whether the associated data is to be updated;
and when the associated data is to be updated, determining the associated data as the data to be updated.
4. The data updating method according to claim 2, wherein the sequentially updating the data to be updated based on the calculation order to update the data to be updated comprises:
acquiring the transaction submitting time to determine the updating time;
and sequentially updating the data to be updated based on the calculation sequence at the updating time so as to update the data to be updated.
5. The data updating method according to claim 4, wherein the sequentially updating the data to be updated based on the calculation order at the updating timing to update the data to be updated comprises:
acquiring the updating mode of each data to be updated;
and updating the data to be updated based on the calculation sequence and the updating mode at the updating time so as to update the data to be updated.
6. The data updating method according to claim 4, wherein the sequentially updating the data to be updated based on the calculation order to update the data to be updated comprises:
judging whether each data to be updated is in the latest state;
and when each piece of data to be updated is in the latest state, updating the data to be updated by utilizing the updating mode of the data to be updated.
7. The data updating method according to claim 1, wherein the determining all relevant data in the association component related to the data to be updated by using the data association relationship comprises:
determining first associated data which directly influences the data to be updated in the association component by utilizing the data association relation;
second associated data that directly affects the first associated data is then determined to determine all of the associated data.
8. A data update apparatus, comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring data to be updated and a preset incidence relation, and the preset incidence relation comprises an incidence relation among components and a data incidence relation based on the components;
the first determination module is used for determining the related component related to the component where the data to be updated is located by utilizing the association relationship among the components;
the second determination module is used for determining all relevant data related to the data to be updated in the relevant component by utilizing the data association relation;
and the updating module is used for updating the data to be updated based on all the related data.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the data update method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the data update method of any one of claims 1 to 7.
CN202110713320.1A 2021-06-25 2021-06-25 Data updating method and device and electronic equipment Pending CN113419762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110713320.1A CN113419762A (en) 2021-06-25 2021-06-25 Data updating method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110713320.1A CN113419762A (en) 2021-06-25 2021-06-25 Data updating method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113419762A true CN113419762A (en) 2021-09-21

Family

ID=77716814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110713320.1A Pending CN113419762A (en) 2021-06-25 2021-06-25 Data updating method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113419762A (en)

Similar Documents

Publication Publication Date Title
EP3270300A1 (en) Method and device for form verification
EP3605366A1 (en) Method and apparatus thereof used in engineering for checking deduction of components in bim modeling
CN108304553B (en) Data migration method and device, computer equipment and storage medium
US9256513B2 (en) Method, apparatus and computer readable medium for automatic debugging and error prevention
CN109240854B (en) Method and system for recovering data of change caused by misoperation
CN107276851B (en) Node abnormity detection method and device, network node and console
CN113342671B (en) Method, device, electronic equipment and medium for verifying operation module
CN111352997A (en) Test environment verification method and system
CN111382077A (en) Application program crash reason positioning method and device, electronic equipment and storage medium
CN110908899A (en) Application program debugging method, mobile terminal and computer readable storage medium
US20210365406A1 (en) Method and apparatus for processing snapshot, device, medium and product
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN113419762A (en) Data updating method and device and electronic equipment
CN112765029A (en) Test method, test device, electronic equipment and computer storage medium
CN105630625A (en) Method and device for detecting consistency between data copies
CN108959415B (en) Abnormal dimension positioning method and device and electronic equipment
CN116340318A (en) Method, device, equipment and storage medium for processing secondary index record
CN110727666A (en) Cache assembly, method, equipment and storage medium for industrial internet platform
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN113934626A (en) Model process debugging method, device and storage medium
CN114509791A (en) Satellite positioning error analysis method and device capable of reducing storage
CN113946466B (en) QT-based software error tracing method and device
CN115150939A (en) Method, device, equipment and storage medium for determining position information of equipment
CN111324505B (en) Log collection method and device, electronic equipment and storage medium
CN117493147A (en) Buried point test method, buried point test device, buried point test equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination