CN111367929B - Data management method and device and storage medium - Google Patents

Data management method and device and storage medium Download PDF

Info

Publication number
CN111367929B
CN111367929B CN202010140647.XA CN202010140647A CN111367929B CN 111367929 B CN111367929 B CN 111367929B CN 202010140647 A CN202010140647 A CN 202010140647A CN 111367929 B CN111367929 B CN 111367929B
Authority
CN
China
Prior art keywords
target
data
module
processing function
determining
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.)
Active
Application number
CN202010140647.XA
Other languages
Chinese (zh)
Other versions
CN111367929A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010140647.XA priority Critical patent/CN111367929B/en
Publication of CN111367929A publication Critical patent/CN111367929A/en
Application granted granted Critical
Publication of CN111367929B publication Critical patent/CN111367929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data management method and device and a storage medium. Wherein, the method comprises the following steps: detecting target trigger eventing in the process of running group operation tasks by a target terminal application; determining a target processing function associated with a target trigger event; determining a first processing function of a first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module; determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module; and updating the second operation data according to the first operation data. The invention solves the technical problem of low data management efficiency.

Description

Data management method and device and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a data management method and apparatus, and a storage medium.
Background
The group system in the virtual game is a popular system with high player participation degree, and comprises a plurality of complex play modules, such as position management, a task system, group war, duplicate breakthrough, group leaping competition and the like, wherein the systems are mutually dependent and influenced, and great development difficulty is brought to the resource management and play logic of the whole group system.
In the service system life cycle management scheme in the prior art, when a service event occurs, a processing function related to the event in various playing methods is called through event driving, when the number of service playing methods is small, the dependency between the playing methods is low, the scheme can keep data concise, but when the number of the playing methods is increased and the dependency of the playing methods is enhanced, the requirements on data calling and mutual dependency are higher and higher, the data management logic required for executing the event is more and more complex, and the problem of low data management efficiency is caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data management method, a data management device and a storage medium, which at least solve the technical problem of low data management efficiency.
According to an aspect of an embodiment of the present invention, there is provided a data management method, including: detecting a target trigger event in the process that a target terminal application runs a group operation task, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes; determining a target processing function associated with the target trigger event; determining a first operation module from each operation module corresponding to the group operation task according to the target processing function, and constructing first operation data of the first operation module; determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module; and updating the second operation data according to the first operation data.
According to another aspect of the embodiments of the present invention, there is also provided a data management apparatus, including: the system comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting a target trigger event in the process that a target terminal application runs a group operation task, and the target trigger event is used for indicating that data corresponding to the group operation task changes; a first determining unit, configured to determine a target processing function associated with the target trigger event; a second determining unit, configured to determine a first operation module from each operation module corresponding to the group operation task according to the target processing function, and construct first operation data of the first operation module; a third determining unit, configured to determine, according to a dependency relationship between operation data of the operation modules, second operation data of a second operation module having a target dependency relationship with the first operation data; and the updating unit is used for updating the second operation data according to the first operation data.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above data management method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data management method through the computer program.
In the embodiment of the invention, in the process of running a group operation task by a target terminal application, a target trigger event is detected, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes; determining a target processing function associated with the target trigger event; determining a first operation module from each operation module corresponding to the group operation task according to the target processing function, and constructing first operation data of the first operation module; determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module; the second operation data is updated according to the first operation data, data are automatically constructed or updated according to the target trigger event according to the dependency relationship among the operation modules, and the technical purpose of reducing the complexity of data management is achieved, so that the technical effect of improving the efficiency of data management is achieved, and the technical problem of low data management efficiency is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative data management method according to an embodiment of the invention;
FIG. 2 is a schematic illustration of a flow chart of an alternative data management method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative data management method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative data management method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an alternative data management method according to an embodiment of the invention;
FIG. 6 is a schematic diagram of an alternative data management method according to an embodiment of the invention;
FIG. 7 is a schematic diagram of an alternative data management apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a data management method is provided, and optionally, as an optional implementation manner, the data management method may be applied to, but is not limited to, an environment as shown in fig. 1. The system may include, but is not limited to, a user equipment 102, a network 110, and a server 112, wherein the user equipment 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104.
Optionally, the specific process may include the following steps:
step S102, when the user equipment 102 displays "whether to select to join the group" on the display 108 through the sensor capable of recognizing the touch operation installed in the display 108, the user equipment 102 obtains a group of touch signals generated at the "yes" button position, and further determines that the detected target trigger event is "join the group";
S104-S106, the user equipment 102 sends the target trigger event to the server 112 through the network 110;
s108, the server 112 searches a target processing function associated with the target trigger event through the database 114, determines a first operation module according to the target processing function through the processing engine 116, and invokes a related function in the first operation module to construct first operation data;
s110, the server 112 searches second operation data of a second operation module having a target dependency relationship with the first operation data through the database 114, and updates the second operation data according to the first operation data;
in steps S110-S112, the server 112 stores the updated second operation data in the database 114 through the network 110 and sends the updated second operation data to the user equipment 102, and the processor 106 in the user equipment 102 adjusts related data (such as the number of group members) according to the updated second operation data to be displayed on the display 108, and stores the updated second operation data in the memory 104.
Optionally, as an optional implementation manner, as shown in fig. 2, the data management method includes:
s202, detecting a target trigger event in the process that a target terminal application runs a group operation task, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes;
s204, determining a target processing function associated with the target trigger event;
s206, determining a first processing function of the first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module;
s208, determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module;
and S210, updating the second operation data according to the first operation data.
Optionally, in this embodiment, the data management method may be applied, but not limited to, in a process in which a target terminal application runs a group operation task. The target terminal application may be, but is not limited to, a virtual game application, an information interaction application, and the like. The group operation task can be, but is not limited to, a task allowing one or more units to participate in operation, such as a group system, a family system, a team system and the like in a virtual game application, such as a group chat system, a conference system and the like in an information interaction application. The target processing function may include, but is not limited to, operating program code that executes a target trigger event. The operational modules may include, but are not limited to, operational program code that performs events in group operational tasks. The operation data can be, but is not limited to, data constructed by a function in the operation module for the stripe.
It should be noted that, in the process of running the group operation task by the target terminal application, a target trigger event is detected, where the target trigger event is used to indicate that data corresponding to the group operation task changes; determining a target processing function associated with a target trigger event; determining a first processing function of a first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module; determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module; and updating the second operation data according to the first operation data.
For further example, as shown in fig. 3, the following steps may be optionally performed:
step 302, in the process of running a group operation task of a group help system, detecting an event "determining to join a help (target trigger event)";
step 304, the life cycle module determines the event type of the event is 'group member joining';
step 306, the life cycle module determines the virtual function type of the event as a member joining virtual function according to the event type;
step 308, the lifecycle module traverses all operation modules under the help system, and calls target virtual functions under the virtual function types of all the operation modules, wherein the target virtual functions are only in a help member module (a first operation module);
step 310, calling a target virtual function in a 'group member module (operation module)' so as to construct first operation data;
step 312, updating second operation data depending on the first operation data according to the first operation data, wherein the second operation data is data on which a third operation data is constructed by a "group war module (second operation module)".
According to the embodiment provided by the application, in the process that the target terminal application runs the group operation task, the target trigger event is detected, the target processing function associated with the target trigger event is determined, and the first processing function of the first operation module is determined from each operation module corresponding to the group operation task according to the target processing function, so that the first operation data of the first operation module is constructed. And then according to the dependency relationship among the operation data of each operation module, determining second operation data of a second operation module having a target dependency relationship with the first operation data, and finally updating the second operation data according to the first operation data. The data of the plurality of operation modules are automatically constructed or updated according to the dependency relationship among the operation modules and the target trigger event, so that the technical purpose of reducing the complexity of data management is achieved, and the technical effect of improving the efficiency of data management is achieved.
As an alternative, determining the target processing function associated with the target trigger event includes:
s1, establishing a mapping relation between a plurality of trigger event types and a target function set in the group operation task process, wherein the target function set is a set of target function classes, and each operation module in each operation module comprises the same target function class;
s2, determining the type of a target trigger event;
and S3, determining a target processing function in the target function set according to the type and the mapping relation.
It should be noted that, in the group operation task process, a mapping relationship between multiple trigger event types and a target function set is established, where the target function set is a set of target function classes, and each operation module in each operation module includes the same target function class; determining the type of a target trigger event; and determining the target processing function in the target function set according to the type and the mapping relation. Alternatively, the class of objective functions may be, but is not limited to, the type of operating program code that performs the event in the group operation task.
For further example, optionally, for example, the group operation task is a group operation task, and then a plurality of trigger events in the group operation task process are divided into a plurality of event types, specifically, for example: the first type comprises the creation and the dissolution of an instant help system, the beginning and the end of a life cycle are identified, and the first type is mainly responsible for resource allocation and recovery; a second type, including group data generation, data synchronization among multiple processes; the third type comprises that a player joins or leaves a group, and data on the player is updated and synchronized; and the fourth type comprises a group of regular refreshing events, regular starting and ending of the playing method.
For example, optionally, for example, the service system operation task is managed by a lifecycle module, and an objective function class is established, where the objective function class includes a function type that needs to be called when a plurality of trigger events in the service system operation task are executed. Further, dividing the objective function class into a plurality of objective function subclasses, and forming an objective function set by the plurality of objective function subclasses together; optionally, a mapping relationship between the target function set and an event type is established, and when a target trigger event is monitored, the life cycle module determines a target function subclass required to be called by the target trigger event according to the mapping relationship; optionally, the target processing function belongs to the target function subclass to be called.
According to the embodiment provided by the application, the mapping relation between the types of the trigger events and the target function set is established in the group operation task process, the types of the target trigger events are determined, and the target processing function in the target function set is determined according to the types and the mapping relation, so that the purpose of increasing the speed of determining the target processing function is achieved, and the technical effect of increasing the efficiency of determining the required calling function is achieved.
As an optional scheme, determining, according to the target processing function, a first processing function of the first operation module from the operation modules corresponding to the group operation task, so as to construct first operation data of the first operation module, includes:
s1, traversing each operation module, and determining a first processing function of a first operation module according to a target processing function, wherein the first processing function comprises the target processing function;
and S2, calling a first processing function to construct operation data of the first operation module. It should be noted that the size of the first detection region is adjusted by reducing.
For example, optionally, for example, a lifecycle module manages and assists system operation tasks, a target function class is divided into a plurality of target function subclasses, and when a target processing function belongs to the target function subclasses to be called, each operation module is traversed, and processing functions under all the target function subclasses are invoked; optionally, the first processing function is a processing function under a subclass of the objective function. Further, the life cycle module calls a first processing function in the first operation module to construct first operation data.
According to the embodiment provided by the application, each operation module is traversed, the first processing function of the first operation module is determined according to the target processing function, the first processing function of the first processing function is called, and then the operation data of the first operation module is constructed, so that the technical purpose that the operation module is determined quickly according to the trigger event and the construction speed of the operation data is improved is achieved, and the technical effect of improving the construction efficiency of the operation data is achieved.
As an optional scheme, determining, according to the dependency relationship between the operation data of the operation modules, second operation data of a second operation module having a target dependency relationship with the first operation data includes:
s1, establishing a dependency relationship among operation data of each operation module;
and S2, determining second operation data according to the first operation data and the dependency relationship.
It should be noted that, the dependency relationship between the operation data of each operation module is established, and the second operation data is determined according to the first operation data and the dependency relationship.
To further illustrate, optionally, as shown in fig. 4, data B1, B2 is constructed by a function in the call B module 404, and data a1 is constructed by a function in the call a module 402; further, for example, the dependency relationship between the data a1, b2 is established as follows: the data a1 does not depend on other data, while the data b1 depends on the data a1 and the data b2 depends on the data b1; optionally, in the process of constructing the data b1, constructing according to the data a 1; optionally, in the process of constructing the data b2, constructing according to the data b1; the data b1 belongs to dependent data a1, optionally, for the data a1, the data b1 is in a primary dependency relationship, the data b2 indirectly depends on the data a1, namely, the data b1 is firstly dependent on the data b1, and the data b1 depends on the data a1, optionally, for the data a1, the data b2 is in a secondary dependency relationship; optionally, by analogy, data with N-times dependency relationship may exist for the data a1, where N is a positive integer greater than or equal to 1.
According to the embodiment provided by the application, the dependency relationship among the operation data of each operation module is established, and the second operation data is determined according to the first operation data and the dependency relationship, so that the purpose of automatically operating the dependency relationship among the data is achieved, and the effect of reducing the calculation complexity of the dependency relationship among the operation data is achieved.
As an optional solution, before detecting the target trigger event, the method further includes:
s1, inheriting a target function class in each operation module corresponding to a group operation task;
and S2, adjusting the processing function in the target function class in each operation module to realize the operation function matched with the operation module.
It should be noted that the objective function class is inherited in each operation module corresponding to the group operation task, and the processing function in the objective function class in each operation module is adjusted to implement the operation function matched with the operation module.
For further example, optionally, for example, the group operation task is a group assistance system operation task, and the group assistance system operation task is managed by a lifecycle module, so as to establish an objective function class; further, dividing the objective function class into a plurality of objective function subclasses, and forming an objective function set by the plurality of objective function subclasses together; each operation module inherits the target function class and correspondingly adjusts a plurality of target function subclasses in the inherited target function class according to the operation function to be realized by each operation module; optionally, the unadjusted objective function subclasses in the operation modules are regarded as empty function subclasses, where the empty function subclasses do not belong to any objective function subclasses.
According to the embodiment provided by the application, the objective function class is inherited in each operation module corresponding to the group operation task, and the processing function in the objective function class in each operation module is adjusted to realize the operation function matched with the operation module, so that the technical purpose of improving the speed of determining the processing function required by realizing the operation function is achieved, and the technical effect of improving the efficiency of realizing the operation function by the operation module is achieved.
As an optional scheme, after updating the second operation data according to the first operation data, the method further includes:
s1, detecting a second target trigger event in the process of running a group operation task by a target terminal application;
s2, determining a second target processing function associated with the target trigger event;
s3, determining a second operation module and second operation data from each operation module corresponding to the group operation task according to a second target processing function;
and S4, constructing third operation data of the second operation module according to the second operation data.
It should be noted that, in the process of running the group operation task by the target terminal application, a second target trigger event is detected, a second target processing function associated with the target trigger event is determined, and a second operation module and second operation data are determined from each operation module corresponding to the group operation task according to the second target processing function, so that third operation data of the second operation module is constructed according to the second operation data.
To further illustrate, alternatively as shown in FIG. 5, assume that data 1 is constructed by a processing function in call A module 502, data 2, 3 are constructed by a processing function in call B module 504, and the construction of data 3 depends on data 2; further, in the case where data 2 has been updated according to the construction of data 1, data 3 is constructed from the updated data 2.
For example, as shown in fig. 6, taking the help system as an example, a help member join 602 is detected (trigger event), and then the lifecycle module 604 determines the modules required for completing each of stage 1, stage 2, and stage 3 of the help member join 602, for example, the modules required for completing the help member join 602 of stage 1 are determined as a help member module 606; the module required for completing joining 602 of the group member in the stage 2 is determined as a group war module 608 and a group copy module 610; the module required to complete the join 602 of the group member of phase 3 is determined to be a group replica module 610. Wherein, optionally, for example, phase 1 is an event construction phase, phase 2 is an event dependent phase, and phase 3 is an event secondary dependent phase.
According to the embodiment provided by the application, in the process that the target terminal application runs the group operation task, the second target trigger event is detected, the second target processing function associated with the target trigger event is determined, the second operation module and the second operation data are determined from each operation module corresponding to the group operation task according to the second target processing function, the third operation data of the second operation module are constructed according to the second operation data, the technical purpose of reducing the complexity of data management is achieved, and therefore the technical effect of improving the efficiency of data management is achieved.
It should be noted that for simplicity of description, the above-mentioned method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a data management apparatus for implementing the above data management method. As shown in fig. 7, the apparatus includes:
a detecting unit 702, configured to detect a target trigger event in a process that a target terminal application runs a group operation task, where the target trigger event is used to indicate that data corresponding to the group operation task changes;
a first determining unit 704, configured to determine a target processing function associated with a target trigger event;
a second determining unit 706, configured to determine, according to the target processing function, a first processing function of the first operation module from the operation modules corresponding to the group operation tasks, so as to construct first operation data of the first operation module;
a third determining unit 708, configured to determine, according to a dependency relationship between operation data of each operation module, second operation data of a second operation module having a target dependency relationship with the first operation data;
an updating unit 710, configured to update the second operation data according to the first operation data.
Optionally, in this embodiment, the data management method may be applied, but not limited to, in a process in which a target terminal application runs a group operation task. The target terminal application may be, but is not limited to, a virtual game application, an information interaction application, and the like. The group operation task can be, but is not limited to, a task allowing one or more units to participate in operation, such as a group system, a family system, a team system and the like in a virtual game application, such as a group chat system, a conference system and the like in an information interaction application. The target processing function may include, but is not limited to, operating program code that executes a target trigger event. The operational modules may include, but are not limited to, operational program code that performs events in a group operational task. The operation data may be, but is not limited to, data constructed by a function in the operation module for the stripe.
It should be noted that, in the process of running the group operation task by the target terminal application, a target trigger event is detected, where the target trigger event is used to indicate that data corresponding to the group operation task changes; determining a target processing function associated with a target trigger event; determining a first processing function of a first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module; determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module; and updating the second operation data according to the first operation data.
For a specific embodiment, reference may be made to the example shown in the data management method, and details in this example are not described herein again.
According to the embodiment provided by the application, in the process that the target terminal application runs the group operation task, the target trigger event is detected, the target processing function associated with the target trigger event is determined, and the first processing function of the first operation module is determined from the operation modules corresponding to the group operation task according to the target processing function, so that the first operation data of the first operation module is constructed. And then according to the dependency relationship among the operation data of each operation module, determining second operation data of a second operation module having a target dependency relationship with the first operation data, and finally updating the second operation data according to the first operation data. The data of the plurality of operation modules are automatically constructed or updated according to the target trigger event according to the dependency relationship among the operation modules, so that the technical purpose of reducing the complexity of data management is achieved, and the technical effect of improving the efficiency of data management is achieved.
As an alternative, the first determining unit 704 includes:
the establishing module is used for establishing a mapping relation between a plurality of trigger event types and a target function set in the group operation task process, wherein the target function set is a set of target function classes, and each operation module in each operation module comprises the same target function class;
the first determining module is used for determining the type of the target triggering event;
and the second determining module is used for determining the target processing function in the target function set according to the type and the mapping relation.
For a specific embodiment, reference may be made to the example shown in the data management method, and details in this example are not described herein again.
As an alternative, the second determining unit 706 includes:
the traversing module is used for traversing each operation module and determining a first processing function of the first operation module according to the target processing function, wherein the first processing function comprises the target processing function;
and the calling module is used for calling the first processing function and constructing the operation data of the first operation module.
For a specific embodiment, reference may be made to the example shown in the data management method, and details in this example are not described herein again.
As an alternative, the third determining unit 708 includes:
the second establishing module is used for establishing a dependency relationship among the operation data of each operation module;
the third determining module determines second operation data according to the first operation data and the dependency relationship.
For a specific embodiment, reference may be made to the example shown in the data management method, which is not described herein again.
As an optional solution, the method further includes:
the inheritance unit is used for inheriting a target function class in each operation module corresponding to the group operation task before detecting the target trigger event;
and the adjusting unit is used for adjusting the processing functions in the target function class in each operation module before the target trigger event is detected so as to realize the operation function matched with the operation module.
For a specific embodiment, reference may be made to the example shown in the data management method, and details in this example are not described herein again.
As an optional solution, the method further includes:
the detection unit is used for detecting a second target trigger event in the process that the target terminal application runs the group operation task after updating the second operation data according to the first operation data;
a fourth determination unit configured to determine a second target processing function associated with the target trigger event after updating the second operation data according to the first operation data;
a fifth determining unit, configured to determine, after updating the second operation data according to the first operation data, a second operation module and second operation data from the operation modules corresponding to the group operation tasks according to the second target processing function;
and a construction unit for constructing third operation data of the second operation module according to the second operation data after updating the second operation data according to the first operation data.
For a specific embodiment, reference may be made to the example shown in the data management method, and details in this example are not described herein again.
According to yet another aspect of the embodiments of the present invention, there is further provided an electronic device for implementing the data management method, as shown in fig. 8, the electronic device includes a memory 802 and a processor 804, the memory 802 stores a computer program therein, and the processor 804 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the following steps that S1, in the process that a target terminal application runs a group operation task, a target trigger event is detected, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes;
s2, determining a target processing function associated with the target trigger event;
s3, determining a first processing function of the first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module;
s4, determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module;
and S5, updating the second operation data according to the first operation data.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 8 is a diagram illustrating the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the data management method and apparatus in the embodiments of the present invention, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, implements the data management method. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 802 may be, but not limited to, specifically configured to store operation data, processing functions, target trigger events, and other information. As an example, as shown in fig. 8, the memory 802 may include, but is not limited to, a detection unit 702, a first determination unit 704, a second determination unit 706, a third determination unit 708, and an update unit 710 in the data management apparatus. In addition, the data management device may further include, but is not limited to, other module units in the data management device, which is not described in detail in this example.
Optionally, the transmitting device 806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 806 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 808 for displaying the operation data, the processing function, the target trigger event and other information; and a connection bus 810 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
the method comprises the following steps that S1, in the process that a target terminal application runs a group operation task, a target trigger event is detected, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes;
s2, determining a target processing function associated with the target trigger event;
s3, determining a first processing function of the first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module;
s4, determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module;
and S5, updating the second operation data according to the first operation data.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be implemented in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for managing data, comprising:
in the process that a target terminal application runs a group operation task, a target trigger event is detected, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes;
determining a target processing function associated with the target trigger event;
determining a first processing function of a first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module;
determining second operation data of a second operation module having a target dependency relationship with the first operation data according to the dependency relationship among the operation data of each operation module;
updating the second operation data according to the first operation data;
the determining a target processing function associated with the target trigger event comprises:
establishing a mapping relation between a plurality of trigger event types and a target function set in the group operation task process, wherein the target function set is a function set of a target function class, and each operation module in each operation module comprises the same target function class;
determining the type of the target trigger event;
and determining the target processing function in the target function set according to the type and the mapping relation.
2. The method according to claim 1, wherein the determining, according to the target processing function, the first processing function of the first operation module from the operation modules corresponding to the group operation tasks to construct the first operation data of the first operation module comprises:
traversing each operation module, and determining the first processing function of the first operation module according to the target processing function, wherein the first processing function comprises the target processing function;
and calling the first processing function to construct the operation data of the first operation module.
3. The method of claim 1, wherein the determining, according to the dependency relationship among the operation data of the operation modules, second operation data of a second operation module having a target dependency relationship with the first operation data comprises:
establishing a dependency relationship among the operation data of each operation module;
and determining the second operation data according to the first operation data and the dependency relationship.
4. The method of claim 1, prior to the detecting the target trigger event, further comprising:
inheriting the target function class in each operation module corresponding to the group operation task; and adjusting the processing function in the target function class in each operation module to realize the operation function matched with the operation module.
5. The method of claim 1, after updating the second operational data according to the first operational data, further comprising:
detecting a second target trigger event in the process of running the group operation task by the target terminal application;
determining a second target processing function associated with the second target trigger event;
determining a second processing function of the second operation module and the second operation data from each operation module corresponding to the group operation task according to the second target processing function;
and constructing third operation data of the second operation module according to the second operation data.
6. A data management apparatus, comprising:
the detection unit is used for detecting a target trigger event in the process that a target terminal application runs a group operation task, wherein the target trigger event is used for indicating that data corresponding to the group operation task changes;
a first determining unit, configured to determine a target processing function associated with the target trigger event;
the second determining unit is used for determining a first processing function of a first operation module from each operation module corresponding to the group operation task according to the target processing function so as to construct first operation data of the first operation module;
a third determining unit, configured to determine, according to a dependency relationship between the operation data of the operation modules, second operation data of a second operation module having a target dependency relationship with the first operation data;
the updating unit is used for updating the second operation data according to the first operation data;
the first determination unit includes:
the establishing module is used for establishing a mapping relation between a plurality of trigger event types and a target function set in the group operation task process, wherein the target function set is a set of target function classes, and each operation module in each operation module comprises the same target function class;
the first determination module is used for determining the type of the target trigger event;
and the second determining module is used for determining the target processing function in the target function set according to the type and the mapping relation.
7. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN202010140647.XA 2020-03-03 2020-03-03 Data management method and device and storage medium Active CN111367929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010140647.XA CN111367929B (en) 2020-03-03 2020-03-03 Data management method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010140647.XA CN111367929B (en) 2020-03-03 2020-03-03 Data management method and device and storage medium

Publications (2)

Publication Number Publication Date
CN111367929A CN111367929A (en) 2020-07-03
CN111367929B true CN111367929B (en) 2023-03-28

Family

ID=71208450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010140647.XA Active CN111367929B (en) 2020-03-03 2020-03-03 Data management method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111367929B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN103186834A (en) * 2011-12-31 2013-07-03 阿里巴巴集团控股有限公司 Method and device of business process configuration
CN105160042A (en) * 2015-10-21 2015-12-16 浪潮(北京)电子信息产业有限公司 Method and device for keeping user view data and data model data consistent
CN107526631A (en) * 2017-09-01 2017-12-29 百度在线网络技术(北京)有限公司 A kind of Mission Monitor method, apparatus, equipment and medium
CN107678774A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 Method, system, computer installation and the readable storage medium storing program for executing of response data modification
CN110413632A (en) * 2018-04-26 2019-11-05 腾讯科技(深圳)有限公司 Method, apparatus, computer-readable medium and the electronic equipment of controlled state

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9594644B2 (en) * 2014-09-19 2017-03-14 Sybase, Inc. Converting a serial transaction schedule to a parallel transaction schedule
JP2017162062A (en) * 2016-03-08 2017-09-14 富士通株式会社 Information processing device, information processing system, information processing method, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN103186834A (en) * 2011-12-31 2013-07-03 阿里巴巴集团控股有限公司 Method and device of business process configuration
CN105160042A (en) * 2015-10-21 2015-12-16 浪潮(北京)电子信息产业有限公司 Method and device for keeping user view data and data model data consistent
CN107526631A (en) * 2017-09-01 2017-12-29 百度在线网络技术(北京)有限公司 A kind of Mission Monitor method, apparatus, equipment and medium
CN107678774A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 Method, system, computer installation and the readable storage medium storing program for executing of response data modification
CN110413632A (en) * 2018-04-26 2019-11-05 腾讯科技(深圳)有限公司 Method, apparatus, computer-readable medium and the electronic equipment of controlled state

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件协同开发活动管理的3个方面;陈虔 等;《北京航空航天大学学报》(第02期);224-227 *

Also Published As

Publication number Publication date
CN111367929A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
JP6755527B2 (en) Data processing methods and equipment for mobile games
CN110392052A (en) A kind of block chain intelligence contract processing system and method
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN106296135A (en) Event-prompting method, device and terminal
CN111309445A (en) Program running method and device and storage medium
CN110928397B (en) User interface refreshing method and device, storage medium and electronic device
CN111045893A (en) Method, device and system for executing monitoring task, storage medium and electronic device
CN108062244B (en) Reptile task canceling method and device
CN112121427B (en) Control method and device of virtual prop and storage medium
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN112044061B (en) Game picture processing method and device, electronic equipment and storage medium
CN114416508A (en) Application performance monitoring method and device, storage medium and electronic equipment
CN108553904B (en) Game matching method and device, electronic equipment and medium
CN111367929B (en) Data management method and device and storage medium
CN110865894B (en) Method and device for controlling application program across terminals
CN112084044A (en) Event processing method in system and related device
CN111182522A (en) Group partner determining method, device, electronic equipment and computer storage medium
CN106484395B (en) Event display method and device
CN113064531B (en) Virtual resource interaction method and device, storage medium and electronic equipment
CN106302670A (en) A kind of picture update method, communication terminal and server
CN112131112B (en) Operation information acquisition method and device, storage medium and electronic equipment
CN114222154A (en) Associated account recommendation method and device, storage medium and electronic equipment
CN111160738A (en) Event processing method and device, storage medium and electronic device
CN111125187A (en) Data management method and device based on block chain
CN108881344B (en) Service processing method and device, storage equipment and processing server

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40025907

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant