WO2023098593A1 - Data processing method and apparatus - Google Patents

Data processing method and apparatus Download PDF

Info

Publication number
WO2023098593A1
WO2023098593A1 PCT/CN2022/134455 CN2022134455W WO2023098593A1 WO 2023098593 A1 WO2023098593 A1 WO 2023098593A1 CN 2022134455 W CN2022134455 W CN 2022134455W WO 2023098593 A1 WO2023098593 A1 WO 2023098593A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
mapping relationship
identifier
relationship
mapping
Prior art date
Application number
PCT/CN2022/134455
Other languages
French (fr)
Chinese (zh)
Inventor
王学文
康泰
黄玮
Original Assignee
阿里云计算有限公司
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 阿里云计算有限公司 filed Critical 阿里云计算有限公司
Publication of WO2023098593A1 publication Critical patent/WO2023098593A1/en

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/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24558Binary matching operations
    • G06F16/2456Join operations

Definitions

  • the present application relates to the field of new generation information technology, in particular to a data processing method and device.
  • the server that provides external services has a database, and the database stores multiple data, and there is an association relationship between multiple data, such as parent-child relationship or dependency relationship, and the association relationship between multiple data Complex and multi-layered.
  • the server often needs to query the data with related relationships from the database, and then provide external services through the data with related relationships.
  • the association relationship between multiple data in the database is complex and has many association levels, the process of querying the data with association relationship from the database takes a long time and the query efficiency is low.
  • the present application shows a data processing method and device.
  • the present application shows a data processing method, including: when a plurality of data are stored in the database, for any first data in the plurality of data, determine in the database the difference between the first data and the first data The second data that has a direct relationship between them; generate the mapping relationship corresponding to the first data, and the mapping relationship corresponding to the first data includes: between the data identifier of the first data and the identifier set including the determined data identifier of the second data Mapping relationship; in the case of obtaining the mapping relationship corresponding to each data in the multiple data, the mapping relationship corresponding to at least two data whose data identifiers have intersections are combined into a mapping relationship set, and any two mappings There is no intersection between the data identifiers in the relationship set; in the corresponding relationship between the set identifiers of the mapping relationship set and the data identifiers of the data, the set identifiers of the mapping relationship set and the identifier set including the data identifiers in the mapping relationship set are stored.
  • the present application shows a data processing method, including: obtaining the data identification of the third data when at least the fourth data associated with the third data needs to be searched in a database including multiple data; In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, find the set identifier of the mapping relationship set corresponding to the data identifier of the third data; obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set , the obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, and the mapping relationship corresponding to any one of the at least two data includes: the data identifier of the data and the data associated with the data
  • the mapping relationship between the identification sets of the data identifications of the data having a direct association relationship; according to the data identifications included in at least two mapping relationships in the acquired mapping relationship set, at least the fourth data is searched in the database.
  • the present application shows a data processing device, including: a first determining module, configured to store a plurality of data in the database, for any first data in the plurality of data, in the database Determine the second data that has a direct relationship with the first data; the first generation module is used to generate the mapping relationship corresponding to the first data, and the mapping relationship corresponding to the first data includes: the data identifier of the first data and the The determined mapping relationship between the identification sets of the data identifications of the second data; the combination module is used to obtain at least the intersection of the included data identifications in the case of obtaining the corresponding mapping relationship of each data in the plurality of data.
  • mapping relationships corresponding to the two data are combined into a mapping relationship set, and there is no intersection between the data identifiers in any two mapping relationship sets; In the corresponding relationship, the set identification of the mapping relationship set and the identification set including the data identification in the mapping relationship set are stored.
  • the present application shows a data processing device, including: a third acquiring module, configured to acquire the fourth data associated with the third data in a database including multiple data at least to find The data identifier of the third data; the third search module is used to search for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data; the third Four acquisition module, used to acquire the mapping relationship set corresponding to the set identification of the found mapping relationship set, the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, at least two data The mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the data that has a direct relationship with the data; the fourth search module is configured to The data identifiers respectively included in at least two mapping relationships in the relationship set are searched for at least the fourth data in the database.
  • the present application shows an electronic device, and the electronic device includes: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the method as shown in any of the preceding aspects .
  • the present application shows a non-transitory computer-readable storage medium.
  • the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the method as shown in any of the preceding aspects. .
  • the present application shows a computer program product.
  • the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can execute the method as shown in any one of the foregoing aspects.
  • FIG. 1 shows a flowchart of the steps of a data processing method of the present application.
  • FIG. 2 shows a schematic diagram of a data association relationship in the present application.
  • FIG. 3 shows a schematic diagram of a data association relationship in the present application.
  • FIG. 4 shows a flow chart of the steps of a data processing method of the present application.
  • FIG. 5 shows a flowchart of steps of a data processing method of the present application.
  • FIG. 6 shows a flowchart of steps of a data processing method of the present application.
  • FIG. 7 shows a structural block diagram of a data processing device of the present application.
  • FIG. 8 shows a structural block diagram of a data processing device of the present application. as well as
  • Fig. 9 shows a structural block diagram of a device of the present application.
  • FIG. 1 it shows a schematic flowchart of a data processing method of the present application, and the method 100 includes steps S101-S104.
  • step S101 if a plurality of data are stored in the database, for any first data among the plurality of data, second data having a direct association relationship with the first data is determined in the database.
  • the databases in this application include relational databases and the like.
  • the data in the database may include metadata and the like.
  • a plurality of data are stored in the database, and among the plurality of data, some data have a direct relationship, such as a direct dependency relationship and a direct parent-child relationship.
  • association relationship between the one data and another data, and there is a direct relationship between the other data and the other data, even if there is no direct relationship between the one data and the other data.
  • Association relationship but the one data is associated with the other data (such as indirect association, etc.).
  • two data being related may be understood as: two data are directly related or indirectly related.
  • the first data is any one of multiple data in the database.
  • the second data that has a direct relationship with the first data in the database can be determined through the detailed content of the data (for example, including the attributes of the data, etc.)
  • the specific determination method can refer to the currently existing methods, and the present application does not limit the specific determination method.
  • a mapping relationship corresponding to the first data is generated, and the mapping relationship corresponding to the first data includes: a mapping relationship between a data identifier of the first data and an identifier set including the determined data identifier of the second data.
  • the data identification of the data includes the ID (Identity Document, identity identification number) of the data, etc.
  • the determined data identifiers of the second data can be combined into an identifier set (even if one second data is determined, the data identifier of the second data can be regarded as an identifier set), and then A mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data is generated, and used as the mapping relationship corresponding to the first data.
  • mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data may be embodied in the form of a key-value pair "key-value”.
  • key may include “the data identifier of the first data”
  • value may include “the identifier set including the determined data identifier of the second data”
  • the identifier including the determined data identifier of the second data The “set” may be embodied in the form of an array, and the array includes the determined data identifiers of each second data and the like.
  • step S101 to step S102 is also executed, so as to obtain the mapping relationship corresponding to each of the multiple data stored in the database.
  • the mapping relationship corresponding to any piece of data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data, and the like.
  • Data 1 and data 2 there is a direct relationship between data 1 and data 2.
  • Data 1 and data 3 There is an association relationship between data 1 and data 3 .
  • Data 2 also has an association relationship with data 4 .
  • Data 2 also has an association relationship with data 5 .
  • Data 3 also has an association relationship with data 6 .
  • mapping relationship corresponding to data 1 includes: the mapping relationship between the "data identifier of data 1" and the identifier set including "data identifier of data 2+data identifier of data 3".
  • the mapping relationship corresponding to data 2 includes: a mapping relationship between "data identifier of data 2" and an identifier set including "data identifier of data 1+data identifier of data 4+data identifier of data 5".
  • the mapping relationship corresponding to data 3 includes: the mapping relationship between the "data identifier of data 3" and the identifier set including "data identifier of data 1+data identifier of data 6".
  • the mapping relationship corresponding to the data 4 includes: the mapping relationship between the "data identifier of the data 4" and the identifier set including the "data identifier of the data 2".
  • the mapping relationship corresponding to the data 5 includes: the mapping relationship between the "data identifier of the data 5" and the identifier set including the "data identifier of the data 2".
  • the mapping relationship corresponding to the data 6 includes: the mapping relationship between the "data identifier of the data 6" and the identifier set including the "data identifier of the data 3".
  • step S103 in the case of obtaining the corresponding mapping relationship of each data in the plurality of data respectively, the mapping relationship corresponding to at least two data whose data identifiers are intersected respectively is combined into a mapping relationship Set, there is no intersection of data identifiers in any two sets of mapping relationships.
  • mapping relationships corresponding to each of the multiple data in the database some of the mapping relationships with intersections are combined into one mapping relationship set, and the other mapping relationships with intersection sets are combined into another mapping relationship set... ...and another part of mapping relations with intersections is combined into another set of mapping relations and so on.
  • mapping relationships can be obtained. And there is no intersection of data identifiers in any two sets of mapping relations.
  • the data identification of the data is stored in the mapping relationship corresponding to each data, and is used to record the direct association relationship between the data. If there is an intersection of the data identification of the data in the mapping relationship corresponding to two data , then the data in the mapping relationship corresponding to the two data identifies that the corresponding data are related (have a direct relationship or an indirect relationship). In this way, the mapping relationships corresponding to the two data can be located in the same mapping relationship set, which is used to record that the data corresponding to the data identifiers in the mapping relationships corresponding to the two data are associated.
  • mapping relationship corresponding to each data in the plurality of data the mapping relationship corresponding to at least two data whose data identifiers are intersected are combined into a mapping relationship set.
  • mapping relationships corresponding to the associated data in multiple data, that is, the data corresponding to the data identifiers in each mapping relationship in a mapping relationship set are associated (including direct association and indirect connection, etc.).
  • the data identifiers in the mapping relationship corresponding to data 1 and the data identifiers in the mapping relationships corresponding to data 2 to 6 all have intersections. Therefore, the mapping relationship corresponding to data 1 and the data identifier corresponding to data 2 can be combined.
  • the mapping relationship, the mapping relationship corresponding to data 3, the mapping relationship corresponding to data 4, the mapping relationship corresponding to data 5, and the mapping relationship corresponding to data 6 are combined into a mapping relationship set.
  • the database also includes data 7 , data 8 , data 9 , and data 10 .
  • Data 7, data 8, data 9 and data 10 can be referred to as shown in FIG. 3 .
  • data 7 and data 8 have a direct relationship
  • data 8 and data 10 have an association relationship
  • data 7 and data 9 also have an association relationship
  • the mapping relationship corresponding to the data 7 includes: the mapping relationship between the "data identifier of the data 7" and the identifier set including "the data identifier of the data 8 + the data identifier of the data 9".
  • the mapping relationship corresponding to the data 8 includes: the mapping relationship between the "data identifier of the data 8" and the identifier set including "the data identifier of the data 7 + the data identifier of the data 10".
  • the mapping relationship corresponding to the data 9 includes: the mapping relationship between the "data identifier of the data 9" and the identifier set including the "data identifier of the data 7".
  • the mapping relationship corresponding to the data 10 includes: the mapping relationship between the "data identifier of the data 10" and the identifier set including the "data identifier of the data 8".
  • the data identifiers in the mapping relationship corresponding to data 7 and the data identifiers in the mapping relationship corresponding to data 8 to 10 all have intersections, and the data identifiers in the mapping relationship corresponding to data 7 to 10 respectively correspond to data 1 to 6 respectively. There is no intersection between the data identifiers in the mapping relationship, therefore, the mapping relationship corresponding to data 7, the mapping relationship corresponding to data 8, the mapping relationship corresponding to data 9, and the mapping relationship corresponding to data 10 can be combined into another mapping relationship set .
  • step S104 in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set and an identification set including the data identifiers in the mapping relationship set are stored.
  • the set identifier of the set of mapping relationships can be set, wherein the set identifiers of different sets of mapping relationships in this application are different, and then the statistics of each mapping in the set of mapping relationships can be calculated
  • the data identifiers included in the relationship (after deduplication), and the statistical data identifiers are combined into an identifier set, and then the set identifier of the mapping relationship set and the combined identifier set form a corresponding entry, and stored in the mapping In the corresponding relationship between the collection identifier of the relational collection and the data identifier of the data.
  • the set identifier of the mapping relation set corresponding to the data identifier of the third data is searched. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
  • the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
  • this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
  • the data in the database may sometimes be updated according to the actual situation, for example, new data is added to the database, or old data is deleted from the database.
  • the data identification of the updated data can be updated in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data, and the related The mapping relationship collection of the updated data is updated.
  • the data in the database can correspond to the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, and the mapping relationship set can be corresponding.
  • the data identifier of the new data can be added to the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data according to the following process, and, The set of mapping relations involving new data is updated.
  • the update process 200 includes steps S201-S205.
  • step S201 when new data is added to the database, the data identifier of the associated data that has a direct association relationship with the new data is determined in the database.
  • the data identifier of the new data when new data is added to the database, the data identifier of the new data can be obtained, and then the data identifier of the associated data that has a direct relationship with the new data can be determined in the database.
  • the associated data that has a direct relationship with new data in the database can be determined through the detailed content of the data (for example, including the attributes of the data, etc.).
  • the determination method reference may be made to the currently existing methods, and the present application does not limit the specific determination method.
  • step S202 in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the associated data is searched.
  • the mapping relationship set corresponding to the associated data has a mapping relationship corresponding to the associated data.
  • the mapping relationship corresponding to the associated data includes: the data identification of the associated data is directly associated with the associated data A mapping relationship between sets of identifiers for data identifiers for relational data.
  • mapping between the data identifier of the associated data and the identifier set including the data identifiers of the data that has a direct relationship with the associated data should include the data identifier of the new data.
  • mapping relationship set including the mapping relationship corresponding to the associated data should include the mapping relationship corresponding to the new data, and the mapping relationship corresponding to the new data may include: the data identifier of the new data and the data including the determined associated data The mapping relationship between identified identity sets.
  • mapping relationship set of the mapping relationship does not include the mapping relationship corresponding to the new data. Therefore, it is necessary to define the mapping relationship between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct relationship with the associated data. In the identification set, add the data identification of the new data, and need to add the mapping relationship corresponding to the new data in the mapping relationship set including the mapping relationship corresponding to the associated data.
  • step S203 the mapping relationship set corresponding to the set identification of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the new data, at least two data
  • the mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data.
  • a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S204 and step S205 are executed respectively.
  • step S204 and step S205 may be executed in parallel or sequentially.
  • step S204 in the obtained mapping relationship set, determine the mapping relationship corresponding to the associated data, the mapping relationship corresponding to the associated data includes: the data identifier of the associated data and the identifier of the data identifier including the data that has a direct relationship with the associated data For the mapping relationship between the collections, the data identifier of the new data is added to the identification set in the mapping relationship corresponding to the associated data.
  • the acquired mapping relationship set includes mapping relationships corresponding to at least two data, for example, mapping relationships corresponding to associated data associated with new data (including direct association and indirect association, etc.).
  • the associated data associated with the new data includes: associated data having a direct association relationship with the new data, data having an indirect association relationship with the new data, and the like.
  • mapping relationships corresponding to at least two data included in the obtained mapping relationship set are respectively the mapping relationship corresponding to the associated data having a direct relationship with the new data, and the association data having an indirect relationship with the new data.
  • the mapping relationship corresponding to the data is respectively the mapping relationship corresponding to the associated data having a direct relationship with the new data, and the association data having an indirect relationship with the new data.
  • mapping relationship corresponding to the associated data that has an indirect relationship with the new data does not need to involve the data identification of the new data, while the mapping relationship corresponding to the associated data that has a direct relationship with the new data needs to involve new data data identifier.
  • mapping relationship includes: the mapping relationship between the data identification of the associated data that has a direct relationship with the new data and the identification set that includes the data identification of the data that has a direct relationship with the associated data, and then between the new data In the identification set in the mapping relationship corresponding to the associated data that has a direct relationship between them, add the data identification of the new data, so that the identification set in the mapping relationship corresponding to the associated data that has a direct relationship with the new data has a new The data identifier for the data.
  • step S205 the mapping relationship corresponding to the new data is generated, and the mapping relationship corresponding to the new data includes: the mapping relationship between the data identifier of the new data and the identifier set including the determined data identifier of the associated data.
  • the mapping relationship corresponding to the new data is added to the mapping relationship collection.
  • mapping relationship between the data identifier of the new data and the identifier set including the determined data identifier of the associated data may be embodied in the form of a key-value pair "key-value”.
  • key may include “data identifier of new data”
  • value may include “identification set including determined data identifiers of associated data”
  • identity set including determined data identifiers of associated data It may be embodied in the form of an array, and the array includes the determined data identification of each associated data and the like.
  • mapping relationship corresponding to the new data can be added to the obtained mapping relationship set, so that the mapping relationship set including "the mapping relationship corresponding to the associated data with the new data has an association relationship" has the corresponding mapping relationship of the new data.
  • mapping relations mapping relations.
  • the data identifier of the old data can be deleted in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data according to the following process, and Update the set of mapping relations involving old data.
  • the update process 300 includes steps S301-S305.
  • step S301 if the old data is deleted from the database, the data identifier of the associated data that has a direct association relationship with the old data is determined in the database.
  • the data identifier of the old data when old data is deleted from the database, the data identifier of the old data can be obtained, and then the data identifier of the associated data that has a direct relationship with the old data can be determined in the database.
  • the inventors found that it takes a long time to determine the associated data that has a direct relationship with the old data through the detailed content of the data (for example, including the attributes of the data, etc.).
  • the data identifier of the first data and the data identifier of the second data can be stored in the direct association table between the data identifier of the data and the data identifier of the data . The same is true for every other first data in the database.
  • the data identification of the new data can be stored in the direct association table between the data identification and the data identification The data identifier for the associated data.
  • the data ID of the associated data that has a direct association relationship with the old data in the database you can directly look up the data ID that is directly related to the old data in the direct association table between the data ID and the data ID.
  • the data identifier of the data corresponding to the data identifier is used as the data identifier of the associated data that has a direct relationship with the old data.
  • the data identification of the associated data that has a direct relationship with the old data can be obtained by looking up the table, thereby reducing the time spent on the process of determining the data identification of the associated data that has a direct relationship with the old data duration.
  • step S302 in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the associated data is searched.
  • mapping relationship set corresponding to the associated data has a mapping relationship corresponding to the associated data.
  • the mapping relationship corresponding to the associated data includes: the data identification of the associated data is directly associated with the associated data A mapping relationship between sets of identifiers for data identifiers for relational data.
  • mapping between the data identifier of the associated data and the identifier set including the data identifiers of the data that has a direct relationship with the associated data should not be included.
  • mapping relationship set including the mapping relationship corresponding to the associated data should not include the mapping relationship corresponding to the old data, and the mapping relationship corresponding to the old data may include: the data identifier of the old data and the The mapping relationship between the identity sets of data identifiers.
  • mapping relationship set of the relationship includes the mapping relationship corresponding to the old data. Therefore, the identification in the mapping relationship between the data identification of the associated data and the identification set including the data identification of the data that has a direct relationship with the associated data is required In the set, the data identifier of the old data is deleted, and the mapping relationship corresponding to the old data needs to be deleted in the mapping relationship set including the mapping relationship corresponding to the associated data.
  • the correspondence between the set identification of the mapping relationship set and the data identification of the data can be In the relationship, look up the set identifier of the mapping relationship set corresponding to the data identifier of the associated data, and then execute step S303.
  • step S303 the mapping relationship set corresponding to the set identifier of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to the old data and the corresponding mapping relationship of at least two data associated with the old data
  • the mapping relationship, the mapping relationship corresponding to the old data includes: the mapping relationship between the data identifier of the old data and the identification set including the determined data identifier of the associated data, and the mapping relationship corresponding to any one of the at least two data Including: a mapping relationship between the data identifier of the data and an identifier set including the data identifiers of the data directly associated with the data.
  • a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S304 and step S305 are executed respectively.
  • step S304 and step S305 may be executed in parallel or sequentially.
  • step S304 in the acquired mapping relationship set, determine the mapping relationship corresponding to the associated data, the mapping relationship corresponding to the associated data includes: the data identifier of the associated data and the identifier of the data identifier including the data that has a direct relationship with the associated data
  • the mapping relationship between the collections in the identification set in the mapping relationship corresponding to the associated data, the data identification of the old data is deleted.
  • the acquired mapping relationship set includes at least two mapping relationships corresponding to the data, for example, the mapping relationship corresponding to the old data, and the associated data associated with the old data (including direct association and indirect association, etc.) mapping relationship.
  • the associated data associated with the old data includes: associated data directly associated with the old data, data indirectly associated with the old data, and the like.
  • mapping relationships corresponding to at least two data included in the obtained mapping relationship set are respectively the mapping relationship corresponding to the associated data having a direct relationship with the old data, and the association data having an indirect relationship with the old data.
  • the mapping relationship corresponding to the data is respectively the mapping relationship corresponding to the associated data having a direct relationship with the old data, and the association data having an indirect relationship with the old data.
  • mapping relationship corresponding to the associated data that has an indirect relationship with the old data does not involve the data identification of the old data, while the mapping relationship corresponding to the associated data that has a direct relationship with the old data involves the old data data-identified.
  • mapping relationship set there may be a mapping relationship corresponding to the associated data that has a direct relationship between old data, and a mapping corresponding to the associated data that has a direct relationship between old data.
  • the relationship includes: the mapping relationship between the data identifier of the associated data that has a direct relationship with the old data and the identifier set that includes the data identifier of the data that has a direct relationship with the associated data, and then between the old data In the identification set in the mapping relationship corresponding to the associated data with a direct relationship, delete the data identification of the old data, so that the identification set in the mapping relationship corresponding to the associated data that has a direct relationship with the old data no longer has The data ID of the old data.
  • step S305 in the acquired mapping relationship set, the mapping relationship corresponding to the old data is deleted.
  • mapping relationship set including "the mapping relationship corresponding to the associated data having an association relationship with the old data does not include the mapping relationship corresponding to the old data.
  • the data association can be queried by means of the data identifier of the data, the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, and the mapping relationship corresponding to at least two data in the mapping relationship set other data.
  • the mapping relationship corresponding to any piece of data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the associated data having a direct relationship with the data, and the like.
  • the query step 400 includes steps S401-S404.
  • step S401 in a case where at least fourth data associated with the third data needs to be searched in a database including multiple data, a data identifier of the third data is acquired.
  • the data identifier of the third data may be input by the user, or obtained by the electronic device according to actual needs.
  • step S402 in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the third data is searched.
  • the mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data are respectively located in the same mapping relationship set, and the The set identification of the mapping relationship set and the identification set including the data identification of the third data and the data identification of each fourth data are located in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the form of corresponding entries middle.
  • mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data may be obtained.
  • mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data (including direct association and indirect association, etc.)
  • mapping relationship corresponding to the third data and the mapping relationship with the third data it is necessary to obtain the mapping relationship corresponding to the third data and the mapping relationship with the third data.
  • a mapping relationship set of mapping relationships corresponding to the fourth data (including direct association and indirect association, etc.).
  • the set of mapping relationship sets can be In the corresponding relationship between the identifier and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the third data is searched, and then step S403 is executed.
  • step S403 the mapping relationship set corresponding to the set identification of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, at least two data
  • the mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data.
  • a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S404 is executed.
  • step S404 at least the fourth data is searched in the database according to the data identifiers respectively included in at least two mapping relationships in the acquired mapping relationship set.
  • the corresponding relationship between the data identifier and the data is stored.
  • the data identification of the fourth data needs to be obtained.
  • the fourth data it may be acquired through at least two mapping relationships in the acquired mapping relationship set.
  • mapping relationship set For example, in an example, data identifiers respectively included in at least two mapping relationships in the mapping relationship set may be acquired.
  • the mapping relationship corresponding to the data includes: the difference between the data identifier of the data and the identifier set including the data identifiers of the data directly related to the data mapping relationship between them.
  • Each data identifier in the mapping relationship can be obtained, and for each other mapping relationship corresponding to data, the above operation is also performed to obtain each data identifier in the mapping relationship set.
  • the fourth data may be acquired in the database according to the acquired data identifier.
  • the obtained data identification can be deduplicated, and the data identification of the third data can be removed, and the remaining data identification is the data identification of the fourth data associated with the third data, so that the data identification can be based on the data identification of the fourth data.
  • Acquiring the fourth data in the database for example, searching for the data corresponding to the data identifier of the fourth data in the corresponding relationship between the data identifier and the data in the database, and using it as the fourth data.
  • the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data can be searched for.
  • the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
  • this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
  • the user may need to view the schematic diagram of the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data, so as to understand the third data and the fourth data Analyze statistics, etc.
  • the electronic device can obtain the third data and the obtained fourth data, rendering a schematic diagram for indicating the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data.
  • the direct association relationship between the third data and at least part of the fourth data and the direct association relationship between each fourth data can be determined.
  • a schematic diagram including the third data and the fourth data can be rendered, and the schematic diagram can indicate that The direct association relationship between the third data and at least part of the fourth data, the direct association relationship between each fourth data, and the like.
  • two pieces of data having a direct relationship are connected by a line segment, so as to indicate that the two pieces of data have a direct relationship and the like.
  • FIG. 7 it shows a structural block diagram of a data processing device of the present application, which may specifically include the following modules: a first determining module 11, configured to store multiple data in the database, for multiple For any one of the first data in the data, determine the second data that has a direct relationship with the first data in the database; the first generation module 12 is used to generate the mapping relationship corresponding to the first data, the first The mapping relationship corresponding to one data includes: the mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data; the combination module 13 is used to obtain each data in the plurality of data respectively In the case of the corresponding mapping relationship, at least two data corresponding to the included data identifiers that have an intersection are combined into a mapping relationship set, and the data identifiers in any two mapping relationship sets do not have an intersection; the first storage module 14. In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, store the set identifier of the
  • the device further includes: a second determination module, configured to determine in the database the data of the associated data that has a direct association relationship with the new data when new data is added to the database Identification; the first search module is used to search for the set identification of the mapping relationship set corresponding to the data identification of the associated data in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data; the first acquisition module, It is used to obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set.
  • a second determination module configured to determine in the database the data of the associated data that has a direct association relationship with the new data when new data is added to the database Identification
  • the first search module is used to search for the set identification of the mapping relationship set corresponding to the data identification of the associated data in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data
  • the first acquisition module It is used to obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set.
  • the obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the new data, and any one of the at least two data
  • the mapping relationship corresponding to the data includes: the mapping relationship between the data identification of the data and the identification set including the data identification of the data that has a direct relationship with the data; the third determination module is used to obtain the mapping relationship set
  • the mapping relationship corresponding to the associated data is determined, the mapping relationship corresponding to the associated data includes: the mapping relationship between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct association relationship with the associated data
  • the first adding module is used to add the data identifier of new data to the identifier set in the mapping relationship corresponding to the associated data;
  • the second generation module is used to generate the mapping relationship corresponding to the new data, and the mapping relationship corresponding to the new data includes: new The mapping relationship between the data identification of the data and the identification set including the determined data identification of the associated data, the second adding module is used to add the mapping relationship
  • the device further includes: a fourth determination module, configured to determine in the database the data of the associated data that has a direct association relationship with the old data in the case that the old data is deleted in the database Identification; the second search module is used to search for the set identification of the mapping relationship set corresponding to the data identification of the associated data in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data; the second acquisition module, It is used to acquire the mapping relationship set corresponding to the set identification of the found mapping relationship set, and the acquired mapping relationship set includes: the mapping relationship corresponding to the old data and the mapping relationship corresponding to at least two data associated with the old data, The mapping relationship corresponding to the old data includes: the mapping relationship between the data identifier of the old data and the identification set including the determined data identifier of the associated data, and the mapping relationship corresponding to any one of the at least two data includes: The mapping relationship between the data identification and the identification set including the data identification of the data that has a direct relationship with the data; the fifth determination module is used to determine
  • the device further includes: a second storage module, configured to, after determining the second data that has a direct relationship with the first data in the database, after the data identification of the data and the data of the data.
  • the data identifier of the first data and the data identifier of the second data are stored in the direct association table between identifiers.
  • the fourth determining module is specifically configured to: search for the data identifier of the data corresponding to the old data identifier in the direct association table between the data identifier and the data identifier, And as the data identifier of the associated data that has a direct relationship with the old data.
  • the set identifier of the mapping relation set corresponding to the data identifier of the third data is searched. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
  • the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
  • this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
  • FIG. 8 it shows a structural block diagram of a data processing device of the present application, and the device may specifically include the following modules: a third acquisition module 21, configured to search at least the third data in a database including multiple data In the case of the associated fourth data, obtain the data identifier of the third data; the third search module 22 is configured to search for the data of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data Identify the set identifier of the corresponding mapping relationship set; the fourth acquisition module 23 is used to acquire the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and the acquired mapping relationship set includes: at least The mapping relationship corresponding to the two data, the mapping relationship corresponding to any one of the at least two data includes: the mapping between the data identifier of the data and the identifier set including the data identifier of the data that has a direct relationship with the data Relationship; the fourth search module 24 is configured to search at least fourth data in the database according to the data
  • the fourth search module includes: a first acquisition unit, configured to acquire the at least two mapping relationships in the mapping relationship set that respectively include data identifiers; a second acquisition unit, configured to It is identified that at least fourth data is acquired in the database.
  • the device further includes: a rendering module, configured to obtain data identifiers respectively included in the at least two mapping relationships in the acquired mapping relationship set and data identifiers of the third data.
  • the third data and the fourth data render a schematic diagram for indicating the direct association relationship between the third data and at least part of the fourth data and the direct association relationship between each fourth data.
  • the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data can be searched for.
  • the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
  • this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
  • the embodiment of the present application also provides a non-volatile readable storage medium, and one or more modules (programs) are stored in the storage medium.
  • the device can execute Instructions for each method step in the embodiments of the present application.
  • the embodiments of the present application provide one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the electronic device executes the method described in one or more of the above embodiments.
  • the electronic device includes a server, a gateway, a sub-device, etc., and the sub-device is an Internet of Things device or the like.
  • Embodiments of the present disclosure can be implemented as an apparatus using any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the apparatus may include servers (clusters), terminal devices such as IoT devices and other electronic devices.
  • servers clusters
  • terminal devices such as IoT devices and other electronic devices.
  • FIG. 9 schematically illustrates an exemplary apparatus 1300 that may be used to implement various embodiments described in this application.
  • FIG. 9 illustrates an exemplary apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
  • processors 1302 a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
  • NVM non-volatile memory
  • the processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.).
  • the apparatus 1300 can serve as a server device such as a gateway in the embodiments of this application.
  • apparatus 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM/storage 1308) having instructions 1314 and in combination with the one or more computer-readable media configured to The one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
  • computer-readable media e.g., memory 1306 or NVM/storage 1308
  • the one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
  • control module 1304 may include any suitable interface controller to provide any suitable Interface.
  • the control module 1304 may include a memory controller module to provide an interface to the memory 1306 .
  • a memory controller module may be a hardware module, a software module and/or a firmware module.
  • Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for apparatus 1300 .
  • memory 1306 may comprise any suitable volatile memory, such as suitable DRAM.
  • memory 1306 may include Double Data Rate Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).
  • DDR4 SDRAM Double Data Rate Quad Synchronous Dynamic Random Access Memory
  • control module 1304 may include one or more input/output controllers to provide interfaces to NVM/storage device(s) 1308 and input/output device(s) 1310 .
  • NVM/storage 1308 may be used to store data and/or instructions 1314 .
  • NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives (HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives).
  • suitable non-volatile memory e.g., flash memory
  • suitable non-volatile storage device(s) e.g., one or more hard drives (HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives.
  • HDD hard drives
  • CD compact disc
  • DVD digital versatile disc
  • NVM/storage 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or may not necessarily be part of the device that are accessible by the device. For example, NVM/storage 1308 may be accessed over a network via input/output device(s) 1310 .
  • the input/output device(s) 1310 may provide an interface for the apparatus 1300 to communicate with any other suitable device, and the input/output device 1310 may include a communication component, a pinyin component, a sensor component, and the like.
  • Network interface 1312 may provide an interface for device 1300 to communicate over one or more networks, and device 1300 may communicate with one or more wireless networks according to any of one or more wireless network standards and/or protocols.
  • Components communicate wirelessly, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination of them for wireless communication.
  • At least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 (eg, a memory controller module). For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die as the logic of the one or more controllers of the control module 1304 . For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of the one or more controllers of the control module 1304 to form a system on chip (SoC).
  • SoC system on chip
  • the apparatus 1300 may be, but not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.).
  • device 1300 may have more or fewer components and/or a different architecture.
  • device 1300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit ( ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application-specific integrated circuit
  • An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The electronic device is caused to perform one or more of the methods described in this application.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a general-purpose computer, special purpose computer, embedded processor or processor of other programmable information processing terminal equipment to produce a machine, so that the instructions executed by the computer or other programmable information processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable information processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided in the present application are a data processing method and apparatus. If a database that comprises a plurality of pieces of data needs to at least be searched for fourth data associated with third data, it is unnecessary to analyze all the data in the database to obtain the fourth data associated with the third data, and thus it is also unnecessary to respectively load each piece of data in the database into a memory, instead, a data identifier of the fourth data associated with the third data can be analyzed and obtained only according to a mapping relationship set, which is found from the above correlation and corresponds to a set identifier, and then the fourth data is acquired from the database according to the data identifier of the fourth data.

Description

数据处理方法及装置Data processing method and device
本申请要求于2021年11月30日提交中国专利局、申请号为202111436096.2、名称为“一种数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111436096.2 and titled "A Data Processing Method and Device" filed with the China Patent Office on November 30, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及新一代信息技术领域,尤其涉及一种数据处理方法及装置。The present application relates to the field of new generation information technology, in particular to a data processing method and device.
背景技术Background technique
在一些情况下,对外提供服务的服务端具有数据库,数据库存储有多个数据,且多个数据之间存在关联关系,例如父子关系或者依赖关系等,以及,多个数据之间的关联关系较复杂且关联层级多。在服务端对外提供服务的场景中,服务端往往需要从数据库中查询具有关联关系的数据,进而通过具有关联关系的数据对外提供服务。然而,由于数据库中的多个数据之间的关联关系较复杂且关联层级多,因此,从数据库中查询具有关联关系的数据的过程需要耗费较长时间,查询效率低。In some cases, the server that provides external services has a database, and the database stores multiple data, and there is an association relationship between multiple data, such as parent-child relationship or dependency relationship, and the association relationship between multiple data Complex and multi-layered. In the scenario where the server provides external services, the server often needs to query the data with related relationships from the database, and then provide external services through the data with related relationships. However, since the association relationship between multiple data in the database is complex and has many association levels, the process of querying the data with association relationship from the database takes a long time and the query efficiency is low.
发明内容Contents of the invention
为了解决相关技术中的问题,本申请示出了一种数据处理方法及装置。In order to solve the problems in related technologies, the present application shows a data processing method and device.
第一方面,本申请示出了一种数据处理方法,包括:在数据库中存储有多个数据的情况下,对于多个数据中的任意一个第一数据,在数据库中确定与第一数据之间具有直接关联关系的第二数据;生成第一数据对应的映射关系,第一数据对应的映射关系包括:第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系;在得到多个数据中的各个数据分别对应的映射关系的情况下,将包括的数据标识存在交集的至少两个数据分别对应的映射关系组合为一个映射关系集合,任意两个映射关系集合中的数据标识不存在交集;在映射关系集合的集合标识与数据的数据标识之间的对应关系中,存储映射关系集合的集合标识以及包括映射关系集合中的数据标识的标识集合。In the first aspect, the present application shows a data processing method, including: when a plurality of data are stored in the database, for any first data in the plurality of data, determine in the database the difference between the first data and the first data The second data that has a direct relationship between them; generate the mapping relationship corresponding to the first data, and the mapping relationship corresponding to the first data includes: between the data identifier of the first data and the identifier set including the determined data identifier of the second data Mapping relationship; in the case of obtaining the mapping relationship corresponding to each data in the multiple data, the mapping relationship corresponding to at least two data whose data identifiers have intersections are combined into a mapping relationship set, and any two mappings There is no intersection between the data identifiers in the relationship set; in the corresponding relationship between the set identifiers of the mapping relationship set and the data identifiers of the data, the set identifiers of the mapping relationship set and the identifier set including the data identifiers in the mapping relationship set are stored.
第二方面,本申请示出了一种数据处理方法,包括:在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,获取第三数据的数据标识;在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识;获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与第三数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。In a second aspect, the present application shows a data processing method, including: obtaining the data identification of the third data when at least the fourth data associated with the third data needs to be searched in a database including multiple data; In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, find the set identifier of the mapping relationship set corresponding to the data identifier of the third data; obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set , the obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, and the mapping relationship corresponding to any one of the at least two data includes: the data identifier of the data and the data associated with the data The mapping relationship between the identification sets of the data identifications of the data having a direct association relationship; according to the data identifications included in at least two mapping relationships in the acquired mapping relationship set, at least the fourth data is searched in the database.
第三方面,本申请示出了一种数据处理装置,包括:第一确定模块,用于在数据库中存储有多个数据的情况下,对于多个数据中的任意一个第一数据,在数据库中确定与第一数据之间具有直接关联关系的第二数据;第一生成模块,用于生成第一数据对应的映射关 系,第一数据对应的映射关系包括:第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系;组合模块,用于在得到多个数据中的各个数据分别对应的映射关系的情况下,将包括的数据标识存在交集的至少两个数据分别对应的映射关系组合为一个映射关系集合,任意两个映射关系集合中的数据标识不存在交集;第一存储模块,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,存储映射关系集合的集合标识以及包括映射关系集合中的数据标识的标识集合。In a third aspect, the present application shows a data processing device, including: a first determining module, configured to store a plurality of data in the database, for any first data in the plurality of data, in the database Determine the second data that has a direct relationship with the first data; the first generation module is used to generate the mapping relationship corresponding to the first data, and the mapping relationship corresponding to the first data includes: the data identifier of the first data and the The determined mapping relationship between the identification sets of the data identifications of the second data; the combination module is used to obtain at least the intersection of the included data identifications in the case of obtaining the corresponding mapping relationship of each data in the plurality of data. The mapping relationships corresponding to the two data are combined into a mapping relationship set, and there is no intersection between the data identifiers in any two mapping relationship sets; In the corresponding relationship, the set identification of the mapping relationship set and the identification set including the data identification in the mapping relationship set are stored.
第四方面,本申请示出了一种数据处理装置,包括:第三获取模块,用于在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,获取第三数据的数据标识;第三查找模块,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识;第四获取模块,用于获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与第三数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;第四查找模块,用于根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。In a fourth aspect, the present application shows a data processing device, including: a third acquiring module, configured to acquire the fourth data associated with the third data in a database including multiple data at least to find The data identifier of the third data; the third search module is used to search for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data; the third Four acquisition module, used to acquire the mapping relationship set corresponding to the set identification of the found mapping relationship set, the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, at least two data The mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the data that has a direct relationship with the data; the fourth search module is configured to The data identifiers respectively included in at least two mapping relationships in the relationship set are searched for at least the fourth data in the database.
第五方面,本申请示出了一种电子设备,电子设备包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行如前述的任一方面所示的方法。In a fifth aspect, the present application shows an electronic device, and the electronic device includes: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the method as shown in any of the preceding aspects .
第六方面,本申请示出了一种非临时性计算机可读存储介质,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如前述的任一方面所示的方法。In the sixth aspect, the present application shows a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the method as shown in any of the preceding aspects. .
第七方面,本申请示出了一种计算机程序产品,当计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备能够执行如前述的任一方面所示的方法。In a seventh aspect, the present application shows a computer program product. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can execute the method as shown in any one of the foregoing aspects.
上述概述仅仅是为了说明书的目的,并不意图以任何方式进行限制。除上述描述的示意性的方面、实施方式和特征之外,通过参考附图和以下的详细描述,本申请进一步的方面、实施方式和特征将会是容易明白的。The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the drawings and the following detailed description.
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are only For the embodiments of the application, those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1示出了本申请的一种数据处理方法的步骤流程图。FIG. 1 shows a flowchart of the steps of a data processing method of the present application.
图2示出了本申请的一种数据的关联关系的示意图。FIG. 2 shows a schematic diagram of a data association relationship in the present application.
图3示出了本申请的一种数据的关联关系的示意图。FIG. 3 shows a schematic diagram of a data association relationship in the present application.
图4示出了本申请的一种数据处理方法的步骤流程图。FIG. 4 shows a flow chart of the steps of a data processing method of the present application.
图5示出了本申请的一种数据处理方法的步骤流程图。FIG. 5 shows a flowchart of steps of a data processing method of the present application.
图6示出了本申请的一种数据处理方法的步骤流程图。FIG. 6 shows a flowchart of steps of a data processing method of the present application.
图7示出了本申请的一种数据处理装置的结构框图。FIG. 7 shows a structural block diagram of a data processing device of the present application.
图8示出了本申请的一种数据处理装置的结构框图。以及FIG. 8 shows a structural block diagram of a data processing device of the present application. as well as
图9示出了本申请的一种装置的结构框图。Fig. 9 shows a structural block diagram of a device of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
参照图1,示出了本申请的一种数据处理方法的流程示意图,该方法100包括步骤S101-S104。Referring to FIG. 1 , it shows a schematic flowchart of a data processing method of the present application, and the method 100 includes steps S101-S104.
在步骤S101中,在数据库中存储有多个数据的情况下,对于多个数据中的任意一个第一数据,在数据库中确定与第一数据之间具有直接关联关系的第二数据。In step S101 , if a plurality of data are stored in the database, for any first data among the plurality of data, second data having a direct association relationship with the first data is determined in the database.
本申请的数据库中包括关系型数据库等。数据库中的数据可以包括元数据等。The databases in this application include relational databases and the like. The data in the database may include metadata and the like.
在本申请中,数据库中存储有多个数据,在多个数据中,部分数据之间是具有直接关联关系,例如直接的依赖关系以及直接的父子关系等。In this application, a plurality of data are stored in the database, and among the plurality of data, some data have a direct relationship, such as a direct dependency relationship and a direct parent-child relationship.
其中,一个数据与另一个数据之间可能没有直接的关联关系,但是该一个数据与该另一个数据之间可能是关联的(例如间接关联等)。Wherein, there may not be a direct relationship between one piece of data and another piece of data, but there may be a relationship between the one piece of data and the other piece of data (such as an indirect relationship, etc.).
例如,在一个例子中,该一个数据与又一个数据之间具有直接关联关系,该又一个数据与该另一个数据之间具有直接关联关系,即使该一个数据与该另一个数据之间没有直接关联关系,但是该一个数据与该另一个数据之间是关联的(例如间接关联等)。For example, in one example, there is a direct relationship between the one data and another data, and there is a direct relationship between the other data and the other data, even if there is no direct relationship between the one data and the other data. Association relationship, but the one data is associated with the other data (such as indirect association, etc.).
本申请中的两个数据是关联的可以理解为:两个数据是直接关联的或者间接关联的等。In the present application, two data being related may be understood as: two data are directly related or indirectly related.
在本步骤中,第一数据为数据库中的多个数据中的任意一个数据。In this step, the first data is any one of multiple data in the database.
在数据库中确定与第一数据之间具有直接关联关系的第二数据时,可以通过数据的详细内容(例如包括数据的属性等)来确定与第一数据之间具有直接关联关系的第二数据,具体确定方式可以参见当前已经存在的方式,本申请对具体的确定方式不做限定。When determining the second data that has a direct relationship with the first data in the database, the second data that has a direct relationship with the first data can be determined through the detailed content of the data (for example, including the attributes of the data, etc.) , the specific determination method can refer to the currently existing methods, and the present application does not limit the specific determination method.
在步骤S102中,生成第一数据对应的映射关系,第一数据对应的映射关系包括:第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系。In step S102, a mapping relationship corresponding to the first data is generated, and the mapping relationship corresponding to the first data includes: a mapping relationship between a data identifier of the first data and an identifier set including the determined data identifier of the second data.
数据的数据标识包括数据的ID(Identity Document,身份标识号)等。The data identification of the data includes the ID (Identity Document, identity identification number) of the data, etc.
其中,在数据库中确定出的与第一数据之间具有直接关联关系的第二数据可能为一个,可能为两个以上。Wherein, there may be one or more than two second data determined in the database and having a direct association relationship with the first data.
在本申请中,可以将确定出的各个第二数据的数据标识组合为一个标识集合(即使确定出一个第二数据,也可以将该一个第二数据的数据标识看作一个标识集合),然后生成第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系,并作为第一数据对应的映射关系。In this application, the determined data identifiers of the second data can be combined into an identifier set (even if one second data is determined, the data identifier of the second data can be regarded as an identifier set), and then A mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data is generated, and used as the mapping relationship corresponding to the first data.
在一个实施例中,第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系可以以键值对“key-value”的形式体现。In an embodiment, the mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data may be embodied in the form of a key-value pair "key-value".
例如,“key”可以包括“第一数据的数据标识”,“value”可以包括“包括确定出的第二数据的数据标识的标识集合”,“包括确定出的第二数据的数据标识的标识集合”可以以 数组的形式体现,数组中包括确定出的各个第二数据的数据标识等。For example, "key" may include "the data identifier of the first data", "value" may include "the identifier set including the determined data identifier of the second data", "the identifier including the determined data identifier of the second data The "set" may be embodied in the form of an array, and the array includes the determined data identifiers of each second data and the like.
对于数据库中存储的多个数据中的其他每一个数据,同样执行步骤S101~步骤S102的流程,从而得到数据库中存储的多个数据中的各个数据分别对应的映射关系。For each of the other data in the multiple data stored in the database, the process of step S101 to step S102 is also executed, so as to obtain the mapping relationship corresponding to each of the multiple data stored in the database.
任意一个数据分别对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系等。The mapping relationship corresponding to any piece of data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data, and the like.
其中,以一个例子对本申请进行举例说明,但不作为对本申请保护范围的限制。例如,假设数据库中包括数据1、数据2、数据3、数据4、数据5以及数据6等。Wherein, an example is used to illustrate the present application, but it is not intended to limit the protection scope of the present application. For example, assume that the database includes data 1, data 2, data 3, data 4, data 5, and data 6, etc.
数据1、数据2、数据3、数据4、数据5以及数据6等的关联关系可以参见图2所示。The association relationship among data 1, data 2, data 3, data 4, data 5, and data 6 can be referred to as shown in FIG. 2 .
其中,数据1与数据2之间具有直接关联关系。数据1与数据3之间具有之间关联关系。数据2还与数据4之间具有之间关联关系。数据2还与数据5之间具有之间关联关系。数据3还与数据6之间具有之间关联关系。Among them, there is a direct relationship between data 1 and data 2. There is an association relationship between data 1 and data 3 . Data 2 also has an association relationship with data 4 . Data 2 also has an association relationship with data 5 . Data 3 also has an association relationship with data 6 .
则数据1对应的映射关系包括:“数据1的数据标识”与包括“数据2的数据标识+数据3的数据标识”的标识集合之间的映射关系。Then the mapping relationship corresponding to data 1 includes: the mapping relationship between the "data identifier of data 1" and the identifier set including "data identifier of data 2+data identifier of data 3".
数据2对应的映射关系包括:“数据2的数据标识”与包括“数据1的数据标识+数据4的数据标识+数据5的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to data 2 includes: a mapping relationship between "data identifier of data 2" and an identifier set including "data identifier of data 1+data identifier of data 4+data identifier of data 5".
数据3对应的映射关系包括:“数据3的数据标识”与包括“数据1的数据标识+数据6的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to data 3 includes: the mapping relationship between the "data identifier of data 3" and the identifier set including "data identifier of data 1+data identifier of data 6".
数据4对应的映射关系包括:“数据4的数据标识”与包括“数据2的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 4 includes: the mapping relationship between the "data identifier of the data 4" and the identifier set including the "data identifier of the data 2".
数据5对应的映射关系包括:“数据5的数据标识”与包括“数据2的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 5 includes: the mapping relationship between the "data identifier of the data 5" and the identifier set including the "data identifier of the data 2".
数据6对应的映射关系包括:“数据6的数据标识”与包括“数据3的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 6 includes: the mapping relationship between the "data identifier of the data 6" and the identifier set including the "data identifier of the data 3".
再参照图1,在步骤S103中,在得到多个数据中的各个数据分别对应的映射关系的情况下,将包括的数据标识存在交集的至少两个数据分别对应的映射关系组合为一个映射关系集合,任意两个映射关系集合中的数据标识不存在交集。Referring to Fig. 1 again, in step S103, in the case of obtaining the corresponding mapping relationship of each data in the plurality of data respectively, the mapping relationship corresponding to at least two data whose data identifiers are intersected respectively is combined into a mapping relationship Set, there is no intersection of data identifiers in any two sets of mapping relationships.
在本申请中,数据库中的多个数据中的各个数据分别对应的映射关系中,一部分具有交集的映射关系组合为一个映射关系集合,另一部分具有交集的映射关系组合为另一个映射关系集合……又一部分具有交集的映射关系组合为又一个映射关系集合等。In this application, among the mapping relationships corresponding to each of the multiple data in the database, some of the mapping relationships with intersections are combined into one mapping relationship set, and the other mapping relationships with intersection sets are combined into another mapping relationship set... ...and another part of mapping relations with intersections is combined into another set of mapping relations and so on.
在一个可能的情况下,可以得到多个不同的映射关系集合。且任意两个映射关系集合中的数据标识不存在交集。In a possible case, multiple different sets of mapping relationships can be obtained. And there is no intersection of data identifiers in any two sets of mapping relations.
在本申请中,各个数据对应的映射关系中存储的是数据的数据标识,且用于记录数据之间的直接关联关系,如果某两个数据分别对应的映射关系中关于数据的数据标识存在交集,则该两个数据分别对应的映射关系中的数据标识对应的数据之间是关联的(具有直接关联关系或者间接关联关系)。这样,该两个数据分别对应的映射关系可以位于同一个映射关系集合中,用以记录该两个数据分别对应的映射关系中的数据标识对应的数据之间是关联的。In this application, the data identification of the data is stored in the mapping relationship corresponding to each data, and is used to record the direct association relationship between the data. If there is an intersection of the data identification of the data in the mapping relationship corresponding to two data , then the data in the mapping relationship corresponding to the two data identifies that the corresponding data are related (have a direct relationship or an indirect relationship). In this way, the mapping relationships corresponding to the two data can be located in the same mapping relationship set, which is used to record that the data corresponding to the data identifiers in the mapping relationships corresponding to the two data are associated.
例如,在得到多个数据中的各个数据对应的映射关系的情况下,将包括的数据标识存 在交集的至少两个数据分别对应的映射关系组合为映射关系集合。For example, in the case of obtaining the mapping relationship corresponding to each data in the plurality of data, the mapping relationship corresponding to at least two data whose data identifiers are intersected are combined into a mapping relationship set.
如此可以实现将多个数据中的关联的数据分别对应的映射关系关联起来,也即,一个映射关系集合中的各个映射关系中的数据标识分别对应的数据之间是关联的(包括直接关联以及间接关联等)。In this way, it is possible to associate the mapping relationships corresponding to the associated data in multiple data, that is, the data corresponding to the data identifiers in each mapping relationship in a mapping relationship set are associated (including direct association and indirect connection, etc.).
在本申请一个实施例中,在一种可能的情况下,得到的映射关系集合可能为两个以上等。In an embodiment of the present application, in a possible situation, there may be more than two sets of mapping relationships obtained.
接步骤S102中的例子,数据1对应的映射关系中的数据标识与数据2~6分别对应的映射关系中的数据标识均具有交集,因此,可以将数据1对应的映射关系、数据2对应的映射关系、数据3对应的映射关系、数据4对应的映射关系、数据5对应的映射关系以及数据6对应的映射关系组合为一个映射关系集合。Following the example in step S102, the data identifiers in the mapping relationship corresponding to data 1 and the data identifiers in the mapping relationships corresponding to data 2 to 6 all have intersections. Therefore, the mapping relationship corresponding to data 1 and the data identifier corresponding to data 2 can be combined. The mapping relationship, the mapping relationship corresponding to data 3, the mapping relationship corresponding to data 4, the mapping relationship corresponding to data 5, and the mapping relationship corresponding to data 6 are combined into a mapping relationship set.
接图2所示的例子,假设数据库中还包括数据7、数据8、数据9以及数据10等。Following the example shown in FIG. 2 , it is assumed that the database also includes data 7 , data 8 , data 9 , and data 10 .
数据7、数据8、数据9以及数据10可以参见图3所示。 Data 7, data 8, data 9 and data 10 can be referred to as shown in FIG. 3 .
其中,数据7与数据8之间具有直接关联关系,数据8与数据10之间具有之间关联关系,以及数据7还与数据9之间具有之间关联关系。Wherein, data 7 and data 8 have a direct relationship, data 8 and data 10 have an association relationship, and data 7 and data 9 also have an association relationship.
则数据7对应的映射关系包括:“数据7的数据标识”与包括“数据8的数据标识+数据9的数据标识”的标识集合之间的映射关系。Then the mapping relationship corresponding to the data 7 includes: the mapping relationship between the "data identifier of the data 7" and the identifier set including "the data identifier of the data 8 + the data identifier of the data 9".
数据8对应的映射关系包括:“数据8的数据标识”与包括“数据7的数据标识+数据10的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 8 includes: the mapping relationship between the "data identifier of the data 8" and the identifier set including "the data identifier of the data 7 + the data identifier of the data 10".
数据9对应的映射关系包括:“数据9的数据标识”与包括“数据7的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 9 includes: the mapping relationship between the "data identifier of the data 9" and the identifier set including the "data identifier of the data 7".
数据10对应的映射关系包括:“数据10的数据标识”与包括“数据8的数据标识”的标识集合之间的映射关系。The mapping relationship corresponding to the data 10 includes: the mapping relationship between the "data identifier of the data 10" and the identifier set including the "data identifier of the data 8".
数据7对应的映射关系中的数据标识与数据8~10分别对应的映射关系中的数据标识均具有交集,数据7~10分别对应的映射关系中的数据标识分别与数据1~6分别对应的映射关系中的数据标识之间不存在交集,因此,可以将数据7对应的映射关系、数据8对应的映射关系、数据9对应的映射关系以及数据10对应的映射关系组合为另一个映射关系集合。The data identifiers in the mapping relationship corresponding to data 7 and the data identifiers in the mapping relationship corresponding to data 8 to 10 all have intersections, and the data identifiers in the mapping relationship corresponding to data 7 to 10 respectively correspond to data 1 to 6 respectively. There is no intersection between the data identifiers in the mapping relationship, therefore, the mapping relationship corresponding to data 7, the mapping relationship corresponding to data 8, the mapping relationship corresponding to data 9, and the mapping relationship corresponding to data 10 can be combined into another mapping relationship set .
在步骤S104中,在映射关系集合的集合标识与数据的数据标识之间的对应关系中,存储映射关系集合的集合标识以及包括映射关系集合中的数据标识的标识集合。In step S104, in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set and an identification set including the data identifiers in the mapping relationship set are stored.
在本步骤中,数据库中的不同的数据的数据标识不同。对于在步骤S103中得到的任意一个映射关系集合,可以设置该映射关系集合的集合标识,其中,本申请中的不同的映射关系集合的集合标识不同,然后统计出该映射关系集合中的各个映射关系中分别包括的数据标识(去重复后的),并将统计出的数据标识组合为标识集合,然后将该映射关系集合的集合标识与组合得到的标识集合组成对应表项,并存储在映射关系集合的集合标识与数据的数据标识之间的对应关系中。In this step, different data in the database have different data identifiers. For any set of mapping relationships obtained in step S103, the set identifier of the set of mapping relationships can be set, wherein the set identifiers of different sets of mapping relationships in this application are different, and then the statistics of each mapping in the set of mapping relationships can be calculated The data identifiers included in the relationship (after deduplication), and the statistical data identifiers are combined into an identifier set, and then the set identifier of the mapping relationship set and the combined identifier set form a corresponding entry, and stored in the mapping In the corresponding relationship between the collection identifier of the relational collection and the data identifier of the data.
对于在步骤S103中得到的其他每一个映射关系集合,同样如此。The same is true for each other set of mapping relationships obtained in step S103.
通过本申请,可以实现对数据库中的多个数据之间的关联关系进行记录,以便之后在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,可以在映射 关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识。然后,获取查找到的映射关系集合的集合标识对应的映射关系集合,再根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。Through this application, it is possible to record the association relationship between multiple data in the database, so that when it is necessary to find at least the fourth data associated with the third data in the database including multiple data, it can be used in the mapping In the corresponding relationship between the set identifier of the relation set and the data identifier of the data, the set identifier of the mapping relation set corresponding to the data identifier of the third data is searched. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
可见,在本申请中,不需要对数据库中的所有数据进行分析以得到第三数据关联的第四数据,从而也就不需要将数据库中的各个数据分别加载至内存中,而可以仅仅根据在上述对应关系中查找到的集合标识对应的映射关系集合来分析出第三数据关联的第四数据的数据标识,再根据第四数据的数据标识在数据库中获取第四数据。It can be seen that in this application, it is not necessary to analyze all the data in the database to obtain the fourth data associated with the third data, so that it is not necessary to load each data in the database into the memory separately, but only according to the Analyze the data identifier of the fourth data associated with the third data by analyzing the mapping relationship set corresponding to the set identifier found in the above correspondence, and then obtain the fourth data in the database according to the data identifier of the fourth data.
可见,本申请可以在内存中仅仅加载映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合等,从而减少了需要在内存中加载的数据,节省内存资源。It can be seen that the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
另外,本申请不需要对数据库中的全量的数据进行分析,而通过对映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合分析,即可实现按需分析,例如,可以实现不对与第三数据不关联的数据进行分析,减少了分析的数据量,从而可以提高查询效率。In addition, this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
另外,在数据库中的数据之间的关联关系层级较复杂的情况下,如果需要在包括多个数据的数据库中至少查找第三数据关联的第四数据,在一种方式中,可以多次递归使用join查询,耗费时间较多,导致查询效率低。而在本申请中,通过“在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识”以及“获取查找到的映射关系集合的集合标识对应的映射关系集合”两个查询步骤,即可得到与第三数据关联的所有数据的数据标识,两个查询步骤可以使用一个join查询,也即,通过本申请,使用一个join查询即可得到与第三数据关联的所有数据的数据标识,从而可以提高查询效率。In addition, in the case where the level of association between data in the database is relatively complex, if it is necessary to at least find the fourth data associated with the third data in a database including multiple data, in one way, it can be recursively multiple times Using join query takes a lot of time, resulting in low query efficiency. However, in this application, by "searching for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data" and "obtaining the found The set identification of the mapping relationship set corresponds to the mapping relationship set" two query steps, you can get the data identification of all the data associated with the third data, the two query steps can use a join query, that is, through this application, use A join query can obtain the data identifiers of all data associated with the third data, thereby improving query efficiency.
在本申请中,根据实际情况有时候可能会对数据库中的数据进行更新,例如,在数据库中添加新的数据,或者在数据库中删除旧的数据等。In this application, the data in the database may sometimes be updated according to the actual situation, for example, new data is added to the database, or old data is deleted from the database.
在对数据库中的数据进行更新的情况下,在本申请中,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中对更新的数据的数据标识进行更新,还可以对涉及更新的数据的映射关系集合更新。In the case of updating the data in the database, in this application, the data identification of the updated data can be updated in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data, and the related The mapping relationship collection of the updated data is updated.
以使得数据库中的数据分别与映射关系集合的集合标识与数据的数据标识之间的对应关系能够对应以及映射关系集合能够对应等。So that the data in the database can correspond to the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, and the mapping relationship set can be corresponding.
在一个例子中,在数据库中添加了新的数据的情况下,可以按照如下流程完成在映射关系集合的集合标识与数据的数据标识之间的对应关系中添加新的数据的数据标识,以及,对涉及新的数据的映射关系集合更新。In an example, when new data is added to the database, the data identifier of the new data can be added to the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data according to the following process, and, The set of mapping relations involving new data is updated.
参见图4,更新流程200包括步骤S201-S205。Referring to FIG. 4, the update process 200 includes steps S201-S205.
在步骤S201中,在数据库中添加了新的数据的情况下,在数据库中确定与新的数据之间具有直接关联关系的关联数据的数据标识。In step S201, when new data is added to the database, the data identifier of the associated data that has a direct association relationship with the new data is determined in the database.
在本申请中,在数据库中添加了新的数据的情况下,可以获取新的数据的数据标识,然后在数据库中确定与新的数据之间具有直接关联关系的关联数据的数据标识。In this application, when new data is added to the database, the data identifier of the new data can be obtained, and then the data identifier of the associated data that has a direct relationship with the new data can be determined in the database.
在数据库中确定与新的数据之间具有直接关联关系的关联数据时,可以通过数据的详细内容(例如包括数据的属性等)来确定与新的数据之间具有直接关联关系的关联数据,具体确定方式可以参见当前已经存在的方式,本申请对具体的确定方式不做限定。When determining the associated data that has a direct relationship with new data in the database, the associated data that has a direct relationship with the new data can be determined through the detailed content of the data (for example, including the attributes of the data, etc.). For the determination method, reference may be made to the currently existing methods, and the present application does not limit the specific determination method.
在步骤S202中,在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识。In step S202, in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the associated data is searched.
关联数据与新的数据之间具有直接关联关系,关联数据对应的映射关系集合中具有关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。There is a direct relationship between the associated data and the new data. The mapping relationship set corresponding to the associated data has a mapping relationship corresponding to the associated data. The mapping relationship corresponding to the associated data includes: the data identification of the associated data is directly associated with the associated data A mapping relationship between sets of identifiers for data identifiers for relational data.
由于在数据库中添加新的数据且新的数据与关联数据之间具有直接关联关系,因此,关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,应当包括有新的数据的数据标识。且包括关联数据对应的映射关系的映射关系集合中,应当包括有新的数据对应的映射关系,新的数据对应的映射关系可以包括:新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系。Since new data is added to the database and there is a direct relationship between the new data and the associated data, the mapping between the data identifier of the associated data and the identifier set including the data identifiers of the data that has a direct relationship with the associated data The identifier set in the relationship should include the data identifier of the new data. And the mapping relationship set including the mapping relationship corresponding to the associated data should include the mapping relationship corresponding to the new data, and the mapping relationship corresponding to the new data may include: the data identifier of the new data and the data including the determined associated data The mapping relationship between identified identity sets.
由于此时关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中不存在新的数据的数据标识,且包括关联数据对应的映射关系的映射关系集合中未包括有新的数据对应的映射关系,因此,需要在关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,添加新的数据的数据标识,以及,需要在包括关联数据对应的映射关系的映射关系集合中添加新的数据对应的映射关系。At this time, there is no new data data identifier in the identifier set in the mapping relationship between the data identifier of the associated data and the identifier set including the data identifiers that have a direct relationship with the associated data, and the associated data includes the corresponding The mapping relationship set of the mapping relationship does not include the mapping relationship corresponding to the new data. Therefore, it is necessary to define the mapping relationship between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct relationship with the associated data. In the identification set, add the data identification of the new data, and need to add the mapping relationship corresponding to the new data in the mapping relationship set including the mapping relationship corresponding to the associated data.
为了能够在关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,添加新的数据的数据标识,以及,能够在包括关联数据对应的映射关系的映射关系集合中添加新的数据对应的映射关系,在本申请中,在得到关联数据的数据标识之后,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识,然后执行步骤S203。In order to be able to add new data data identifiers to the identifier set in the mapping relationship between the data identifier of the associated data and the identifier set including the data identifiers that have a direct relationship with the associated data, and to be able to include the association Add a new mapping relationship corresponding to the data to the mapping relationship set of the mapping relationship corresponding to the data. In this application, after obtaining the data identification of the associated data, the correspondence between the set identification of the mapping relationship set and the data identification of the data can be In the relationship, look up the set identifier of the mapping relationship set corresponding to the data identifier of the associated data, and then execute step S203.
在步骤S203中,获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与新的数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。In step S203, the mapping relationship set corresponding to the set identification of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the new data, at least two data The mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data.
在本申请中,通过前述实施例中的步骤S101以及步骤S102生成了多个映射关系集合,各个映射关系集合的集合标识不同,在本步骤中,可以在已生成的多个映射关系集合中获取查找到的映射关系集合的集合标识对应的映射关系集合。然后分别执行步骤S204以及步骤S205。In this application, a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S204 and step S205 are executed respectively.
其中,步骤S204以及步骤S205可以分别并行执行,或者先后执行等。Wherein, step S204 and step S205 may be executed in parallel or sequentially.
在步骤S204中,在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,在关联数据对应的映射关系中的标识集合中,添 加新的数据的数据标识。In step S204, in the obtained mapping relationship set, determine the mapping relationship corresponding to the associated data, the mapping relationship corresponding to the associated data includes: the data identifier of the associated data and the identifier of the data identifier including the data that has a direct relationship with the associated data For the mapping relationship between the collections, the data identifier of the new data is added to the identification set in the mapping relationship corresponding to the associated data.
在获取的映射关系集合中,包括至少两个数据分别对应的映射关系,例如,与新的数据关联(包括直接关联以及间接关联等)的关联数据分别对应的映射关系。The acquired mapping relationship set includes mapping relationships corresponding to at least two data, for example, mapping relationships corresponding to associated data associated with new data (including direct association and indirect association, etc.).
其中,与新的数据关联的关联数据包括:与新的数据具有直接关联关系的关联数据以及与新的数据具有间接关联关系的数据等。Wherein, the associated data associated with the new data includes: associated data having a direct association relationship with the new data, data having an indirect association relationship with the new data, and the like.
如此,在获取的映射关系集合中包括的至少两个数据分别对应的映射关系,分别为与新的数据具有直接关联关系的关联数据对应的映射关系,以及与新的数据具有间接关联关系的关联数据对应的映射关系。In this way, the mapping relationships corresponding to at least two data included in the obtained mapping relationship set are respectively the mapping relationship corresponding to the associated data having a direct relationship with the new data, and the association data having an indirect relationship with the new data. The mapping relationship corresponding to the data.
与新的数据具有间接关联关系的关联数据对应的映射关系中是不需要涉及新的数据的数据标识的,而与新的数据具有直接关联关系的关联数据对应的映射关系中需要涉及新的数据的数据标识。The mapping relationship corresponding to the associated data that has an indirect relationship with the new data does not need to involve the data identification of the new data, while the mapping relationship corresponding to the associated data that has a direct relationship with the new data needs to involve new data data identifier.
也即,不需要在与新的数据具有间接关联关系的关联数据对应的映射关系中的标识集合中添加新的数据的数据标识,而需要在与新的数据具有直接关联关系的关联数据对应的映射关系中的标识集合中添加新的数据的数据标识。That is to say, there is no need to add the data identifier of the new data to the identifier set in the mapping relationship corresponding to the associated data that has an indirect relationship with the new data, but it is necessary to add the data identifier corresponding to the associated data that has a direct relationship with the new data. The data identifier of the new data is added to the identifier collection in the mapping relationship.
因此,在本申请中,在获取的映射关系集合中,可以确定与新的数据之间具有直接关联关系的关联数据对应的映射关系,与新的数据之间具有直接关联关系的关联数据对应的映射关系包括:与新的数据之间具有直接关联关系的关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,然后在与新的数据之间具有直接关联关系的关联数据对应的映射关系中的标识集合中,添加新的数据的数据标识,以使与新的数据具有直接关联关系的关联数据对应的映射关系中的标识集合中具有新的数据的数据标识。Therefore, in this application, in the obtained mapping relationship set, it is possible to determine the mapping relationship corresponding to the associated data with a direct relationship between the new data, and the mapping relationship corresponding to the associated data with a direct relationship between the new data. The mapping relationship includes: the mapping relationship between the data identification of the associated data that has a direct relationship with the new data and the identification set that includes the data identification of the data that has a direct relationship with the associated data, and then between the new data In the identification set in the mapping relationship corresponding to the associated data that has a direct relationship between them, add the data identification of the new data, so that the identification set in the mapping relationship corresponding to the associated data that has a direct relationship with the new data has a new The data identifier for the data.
在步骤S205中,生成新的数据对应的映射关系,新的数据对应的映射关系包括:新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,在获取的映射关系集合中添加新的数据对应的映射关系。In step S205, the mapping relationship corresponding to the new data is generated, and the mapping relationship corresponding to the new data includes: the mapping relationship between the data identifier of the new data and the identifier set including the determined data identifier of the associated data. The mapping relationship corresponding to the new data is added to the mapping relationship collection.
在本申请中,在数据库中与新的数据之间具有直接关联关系的关联数据可能为一个,可能为两个以上。In this application, there may be one or more than two associated data in the database that have a direct association relationship with the new data.
将确定出的关联数据的数据标识组合为一个标识集合(即使确定出一个关联数据,也可以将该一个关联数据的数据标识看作一个标识集合),然后生成新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,并作为新的数据对应的映射关系。Combine the determined data identifiers of the associated data into an identifier set (even if an associated data is determined, the data identifier of an associated data can be regarded as an identifier set), and then generate a new data identifier and include the determined The mapping relationship between the identification sets of the data identification of the extracted associated data is used as the corresponding mapping relationship of the new data.
在一个实施例中,新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系可以以键值对“key-value”的形式体现。In an embodiment, the mapping relationship between the data identifier of the new data and the identifier set including the determined data identifier of the associated data may be embodied in the form of a key-value pair "key-value".
例如,“key”可以包括“新的数据的数据标识”,“value”可以包括“包括确定出的关联数据的数据标识的标识集合”,“包括确定出的关联数据的数据标识的标识集合”可以以数组的形式体现,数组中包括确定出的各个关联数据的数据标识等。For example, "key" may include "data identifier of new data", "value" may include "identification set including determined data identifiers of associated data", "identification set including determined data identifiers of associated data" It may be embodied in the form of an array, and the array includes the determined data identification of each associated data and the like.
然后可以在获取的映射关系集合中添加新的数据对应的映射关系,以使得包括“与新的数据具有之间关联关系的关联数据对应的映射关系”的映射关系集合中具有新的数据对应的映射关系。Then, the mapping relationship corresponding to the new data can be added to the obtained mapping relationship set, so that the mapping relationship set including "the mapping relationship corresponding to the associated data with the new data has an association relationship" has the corresponding mapping relationship of the new data. Mapping relations.
在另一个例子中,在数据库中删除了旧的数据的情况下,可以按照如下流程完成在映射关系集合的集合标识与数据的数据标识之间的对应关系中删除旧的数据的数据标识,以及对涉及旧的数据的映射关系集合更新。In another example, when the old data is deleted in the database, the data identifier of the old data can be deleted in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data according to the following process, and Update the set of mapping relations involving old data.
参见图5,更新流程300包括步骤S301-S305。Referring to Fig. 5, the update process 300 includes steps S301-S305.
在步骤S301中,在数据库中删除了旧的数据的情况下,在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识。In step S301, if the old data is deleted from the database, the data identifier of the associated data that has a direct association relationship with the old data is determined in the database.
在本申请中,在数据库中删除了旧的数据的情况下,可以获取旧的数据的数据标识,然后在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识。In this application, when old data is deleted from the database, the data identifier of the old data can be obtained, and then the data identifier of the associated data that has a direct relationship with the old data can be determined in the database.
在数据库中确定与旧的数据之间具有直接关联关系的关联数据时,可以通过数据的详细内容(例如包括数据的属性等)来确定与旧的数据之间具有直接关联关系的关联数据,具体确定方式可以参见当前已经存在的方式,本申请对具体的确定方式不做限定。When determining the associated data that has a direct relationship with the old data in the database, you can determine the associated data that has a direct relationship with the old data through the detailed content of the data (for example, including the attributes of the data, etc.). For the determination method, reference may be made to the currently existing methods, and the present application does not limit the specific determination method.
然而,发明人发现,通过数据的详细内容(例如包括数据的属性等)来确定与旧的数据之间具有直接关联关系的关联数据的过程需要耗费一段时长。However, the inventors found that it takes a long time to determine the associated data that has a direct relationship with the old data through the detailed content of the data (for example, including the attributes of the data, etc.).
因此,为了进一步地降低确定与旧的数据之间具有直接关联关系的关联数据的过程需要耗费的时长,在本申请另一实施例中,对于数据库中的任意一个的第一数据,在数据库中确定与第一数据之间具有直接关联关系的第二数据之后,可以在数据的数据标识与数据的数据标识之间的直接关联表中,存储第一数据的数据标识与第二数据的数据标识。对于数据库中的其他每一个的第一数据,同样如此。Therefore, in order to further reduce the time required for the process of determining the associated data that is directly associated with the old data, in another embodiment of the present application, for any first data in the database, in the database After determining the second data that has a direct association relationship with the first data, the data identifier of the first data and the data identifier of the second data can be stored in the direct association table between the data identifier of the data and the data identifier of the data . The same is true for every other first data in the database.
以及,在数据库中确定与新的数据之间具有直接关联关系的关联数据的数据标识之后,可以在数据的数据标识与数据的数据标识之间的直接关联表中,存储新的数据的数据标识与关联数据的数据标识。And, after the data identification of the associated data that has a direct association relationship with the new data is determined in the database, the data identification of the new data can be stored in the direct association table between the data identification and the data identification The data identifier for the associated data.
如此,在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识时,可以在数据的数据标识与数据的数据标识之间的直接关联表中,直接查找与旧的数据的数据标识相对应的数据的数据标识,并作为与旧的数据之间具有直接关联关系的关联数据的数据标识。通过查表的方式即可得到与旧的数据之间具有直接关联关系的关联数据的数据标识,从而可以减少确定与旧的数据之间具有直接关联关系的关联数据的数据标识的过程需要耗费的时长。In this way, when determining the data ID of the associated data that has a direct association relationship with the old data in the database, you can directly look up the data ID that is directly related to the old data in the direct association table between the data ID and the data ID. The data identifier of the data corresponding to the data identifier is used as the data identifier of the associated data that has a direct relationship with the old data. The data identification of the associated data that has a direct relationship with the old data can be obtained by looking up the table, thereby reducing the time spent on the process of determining the data identification of the associated data that has a direct relationship with the old data duration.
在步骤S302中,在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识。In step S302, in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the associated data is searched.
关联数据与旧的数据之间具有直接关联关系,关联数据对应的映射关系集合中具有关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。There is a direct relationship between the associated data and the old data, and the mapping relationship set corresponding to the associated data has a mapping relationship corresponding to the associated data. The mapping relationship corresponding to the associated data includes: the data identification of the associated data is directly associated with the associated data A mapping relationship between sets of identifiers for data identifiers for relational data.
由于在数据库中添加旧的数据且旧的数据与关联数据之间具有直接关联关系,因此,关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,应当不包括有旧的数据的数据标识。且包括关联数据对应的映射关系的映射关系集合中,应当不包括有旧的数据对应的映射关系,旧的数据对应的映射关系可以包括:旧的数据的数据标识与包括确定出的关联数据的数据标识的标识集 合之间的映射关系。Since old data is added to the database and there is a direct relationship between the old data and the associated data, the mapping between the data identifier of the associated data and the identifier set including the data identifiers of the data that has a direct relationship with the associated data In the identification set in the relationship, the data identification with old data should not be included. And the mapping relationship set including the mapping relationship corresponding to the associated data should not include the mapping relationship corresponding to the old data, and the mapping relationship corresponding to the old data may include: the data identifier of the old data and the The mapping relationship between the identity sets of data identifiers.
由于此时关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中存在旧的数据的数据标识,且包括关联数据对应的映射关系的映射关系集合中包括有旧的数据对应的映射关系,因此,需要在关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,删除旧的数据的数据标识,以及,需要在包括关联数据对应的映射关系的映射关系集合中删除旧的数据对应的映射关系。At this time, there are old data data identifiers in the identifier set in the mapping relationship between the data identifier of the associated data and the identifier set that includes the data identifiers that have a direct relationship with the associated data, and includes the mapping corresponding to the associated data. The mapping relationship set of the relationship includes the mapping relationship corresponding to the old data. Therefore, the identification in the mapping relationship between the data identification of the associated data and the identification set including the data identification of the data that has a direct relationship with the associated data is required In the set, the data identifier of the old data is deleted, and the mapping relationship corresponding to the old data needs to be deleted in the mapping relationship set including the mapping relationship corresponding to the associated data.
为了能够在关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系中的标识集合中,删除旧的数据的数据标识,以及,能够在包括关联数据对应的映射关系的映射关系集合中删除旧的数据对应的映射关系,在本申请中,在得到关联数据的数据标识之后,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识,然后执行步骤S303。In order to be able to delete the data identifier of the old data in the identification set in the mapping relationship between the data identification of the associated data and the identification set including the data identification of the data that has a direct relationship with the associated data, and to be able to include the associated data Delete the mapping relationship corresponding to the old data from the mapping relationship set of the mapping relationship corresponding to the data. In this application, after obtaining the data identification of the associated data, the correspondence between the set identification of the mapping relationship set and the data identification of the data can be In the relationship, look up the set identifier of the mapping relationship set corresponding to the data identifier of the associated data, and then execute step S303.
在步骤S303中,获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:旧的数据对应的映射关系以及与旧的数据关联的至少两个数据分别对应的映射关系,旧的数据对应的映射关系包括:旧的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。In step S303, the mapping relationship set corresponding to the set identifier of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to the old data and the corresponding mapping relationship of at least two data associated with the old data The mapping relationship, the mapping relationship corresponding to the old data includes: the mapping relationship between the data identifier of the old data and the identification set including the determined data identifier of the associated data, and the mapping relationship corresponding to any one of the at least two data Including: a mapping relationship between the data identifier of the data and an identifier set including the data identifiers of the data directly associated with the data.
在本申请中,通过前述实施例中的步骤S101以及步骤S102生成了多个映射关系集合,各个映射关系集合的集合标识不同,在本步骤中,可以在已生成的多个映射关系集合中获取查找到的映射关系集合的集合标识对应的映射关系集合。然后分别执行步骤S304以及步骤S305。In this application, a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S304 and step S305 are executed respectively.
其中,步骤S304以及步骤S305可以分别并行执行,或者先后执行等。Wherein, step S304 and step S305 may be executed in parallel or sequentially.
在步骤S304中,在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,在关联数据对应的映射关系中的标识集合中,删除旧的数据的数据标识。In step S304, in the acquired mapping relationship set, determine the mapping relationship corresponding to the associated data, the mapping relationship corresponding to the associated data includes: the data identifier of the associated data and the identifier of the data identifier including the data that has a direct relationship with the associated data For the mapping relationship between the collections, in the identification set in the mapping relationship corresponding to the associated data, the data identification of the old data is deleted.
在获取的映射关系集合中,包括至少两个数据分别对应的映射关系,例如,旧的数据对应的映射关系,以及,与旧的数据关联(包括直接关联以及间接关联等)的关联数据分别对应的映射关系。The acquired mapping relationship set includes at least two mapping relationships corresponding to the data, for example, the mapping relationship corresponding to the old data, and the associated data associated with the old data (including direct association and indirect association, etc.) mapping relationship.
其中,与旧的数据关联的关联数据包括:与旧的数据具有直接关联关系的关联数据以及与旧的数据具有间接关联关系的数据等。Wherein, the associated data associated with the old data includes: associated data directly associated with the old data, data indirectly associated with the old data, and the like.
如此,在获取的映射关系集合中包括的至少两个数据分别对应的映射关系,分别为与旧的数据具有直接关联关系的关联数据对应的映射关系,以及与旧的数据具有间接关联关系的关联数据对应的映射关系。In this way, the mapping relationships corresponding to at least two data included in the obtained mapping relationship set are respectively the mapping relationship corresponding to the associated data having a direct relationship with the old data, and the association data having an indirect relationship with the old data. The mapping relationship corresponding to the data.
与旧的数据具有间接关联关系的关联数据对应的映射关系中是不涉及旧的数据的数据标识的,而与旧的数据具有直接关联关系的关联数据对应的映射关系中是涉及旧的数据 的数据标识的。The mapping relationship corresponding to the associated data that has an indirect relationship with the old data does not involve the data identification of the old data, while the mapping relationship corresponding to the associated data that has a direct relationship with the old data involves the old data data-identified.
也即,与旧的数据具有间接关联关系的关联数据对应的映射关系中的标识集合中不存在旧的数据的数据标识,因此,不需要在与旧的数据具有间接关联关系的关联数据对应的映射关系中的标识集合中删除旧的数据的数据标识。That is to say, there is no data identifier of the old data in the identifier set in the mapping relationship corresponding to the associated data having an indirect relationship with the old data, therefore, there is no need for the The data identifier of the old data is deleted from the identifier set in the mapping relationship.
而与旧的数据具有直接关联关系的关联数据对应的映射关系中的标识集合中存在旧的数据的数据标识,因此,需要在与旧的数据具有直接关联关系的关联数据对应的映射关系中的标识集合中删除旧的数据的数据标识。However, there is a data identifier of the old data in the identifier set in the mapping relationship corresponding to the associated data that has a direct relationship with the old data. Therefore, it is necessary to have a The data identifier for deleting old data in the identifier collection.
因此,在本申请中,在获取的映射关系集合中,可以与旧的数据之间具有直接关联关系的关联数据对应的映射关系,与旧的数据之间具有直接关联关系的关联数据对应的映射关系包括:与旧的数据之间具有直接关联关系的关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,然后在与旧的数据之间具有直接关联关系的关联数据对应的映射关系中的标识集合中,删除旧的数据的数据标识,以使与旧的数据具有直接关联关系的关联数据对应的映射关系中的标识集合中不再具有旧的数据的数据标识。Therefore, in this application, in the obtained mapping relationship set, there may be a mapping relationship corresponding to the associated data that has a direct relationship between old data, and a mapping corresponding to the associated data that has a direct relationship between old data. The relationship includes: the mapping relationship between the data identifier of the associated data that has a direct relationship with the old data and the identifier set that includes the data identifier of the data that has a direct relationship with the associated data, and then between the old data In the identification set in the mapping relationship corresponding to the associated data with a direct relationship, delete the data identification of the old data, so that the identification set in the mapping relationship corresponding to the associated data that has a direct relationship with the old data no longer has The data ID of the old data.
在本申请中,在数据库中与旧的数据之间具有直接关联关系的关联数据可能为一个,可能为两个以上。In this application, there may be one or more than two associated data that have a direct association relationship with the old data in the database.
在步骤S305中,在获取的映射关系集合中,删除旧的数据对应的映射关系。In step S305, in the acquired mapping relationship set, the mapping relationship corresponding to the old data is deleted.
通过本步骤,可以使得包括“与旧的数据具有之间关联关系的关联数据对应的映射关系的映射关系集合中不在具有旧的数据对应的映射关系。Through this step, the mapping relationship set including "the mapping relationship corresponding to the associated data having an association relationship with the old data does not include the mapping relationship corresponding to the old data.
有时候,根据实际需求,可能需要对数据库中存储的多个数据进行查询,例如,由于数据库中的一些数据之间是关联的,例如存在直接的关联关系或者间接的关联关系等,因此,有时候需要查询数据库中的某一个数据,且需要在数据库中的查询该数据关联的其他数据等。Sometimes, according to actual needs, it may be necessary to query multiple data stored in the database. For example, because some data in the database are related, for example, there is a direct relationship or an indirect relationship. Therefore, there are Sometimes you need to query a certain data in the database, and you need to query other data associated with the data in the database.
在这种情况下,可以借助该数据的数据标识、映射关系集合的集合标识与数据的数据标识之间的对应关系、映射关系集合中的至少两个数据分别对应的映射关系来查询该数据关联的其他数据。其中,任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的关联数据的数据标识的标识集合之间的映射关系等。In this case, the data association can be queried by means of the data identifier of the data, the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, and the mapping relationship corresponding to at least two data in the mapping relationship set other data. Wherein, the mapping relationship corresponding to any piece of data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the associated data having a direct relationship with the data, and the like.
参见图6,查询步骤400包括步骤S401-S404。Referring to Fig. 6, the query step 400 includes steps S401-S404.
在步骤S401中,在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,获取第三数据的数据标识。In step S401, in a case where at least fourth data associated with the third data needs to be searched in a database including multiple data, a data identifier of the third data is acquired.
第三数据的数据标识可以是用户输入的,也可以是电子设备根据实际需求获取到的等。The data identifier of the third data may be input by the user, or obtained by the electronic device according to actual needs.
在步骤S402中,在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识。In step S402, in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the third data is searched.
在本申请中,经过图1所示的实施例,在数据库中,第三数据对应的映射关系以及与第三数据关联的第四数据对应的映射关系分别位于同一个映射关系集合中,且该映射关系集合的集合标识与包括第三数据的数据标识与每一个第四数据的数据标识的标识集合,以对应表项的形式位于映射关系集合的集合标识与数据的数据标识之间的对应关系中。In this application, through the embodiment shown in FIG. 1 , in the database, the mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data are respectively located in the same mapping relationship set, and the The set identification of the mapping relationship set and the identification set including the data identification of the third data and the data identification of each fourth data are located in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the form of corresponding entries middle.
为了在包括多个数据的数据库中查找第三数据关联的第四数据,则首先需要得到第三数据关联的第四数据的数据标识。In order to search for the fourth data associated with the third data in the database including multiple data, it is first necessary to obtain the data identification of the fourth data associated with the third data.
为了能够得到第三数据关联的第四数据的数据标识,则可以获取第三数据对应的映射关系以及与第三数据关联(包括直接关联以及间接关联等)的第四数据对应的映射关系等。In order to obtain the data identifier of the fourth data associated with the third data, the mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data (including direct association and indirect association, etc.) may be obtained.
为了能够得到第三数据对应的映射关系以及与第三数据关联(包括直接关联以及间接关联等)的第四数据对应的映射关系,需要得到包括第三数据对应的映射关系以及与第三数据关联(包括直接关联以及间接关联等)的第四数据对应的映射关系的映射关系集合。In order to obtain the mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data (including direct association and indirect association, etc.), it is necessary to obtain the mapping relationship corresponding to the third data and the mapping relationship with the third data. A mapping relationship set of mapping relationships corresponding to the fourth data (including direct association and indirect association, etc.).
为了得到包括第三数据对应的映射关系以及与第三数据关联(包括直接关联以及间接关联等)的第四数据对应的映射关系的映射关系集合,在本申请中,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与第三数据的数据标识相对应的映射关系集合的集合标识,然后执行步骤S403。In order to obtain the mapping relationship set including the mapping relationship corresponding to the third data and the mapping relationship corresponding to the fourth data associated with the third data (including direct association and indirect association, etc.), in this application, the set of mapping relationship sets can be In the corresponding relationship between the identifier and the data identifier of the data, the set identifier of the mapping relationship set corresponding to the data identifier of the third data is searched, and then step S403 is executed.
在步骤S403中,获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与第三数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。In step S403, the mapping relationship set corresponding to the set identification of the found mapping relationship set is acquired, and the acquired mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, at least two data The mapping relationship corresponding to any one of the data includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifiers of the data directly associated with the data.
在本申请中,通过前述实施例中的步骤S101以及步骤S102生成了多个映射关系集合,各个映射关系集合的集合标识不同,在本步骤中,可以在已生成的多个映射关系集合中获取查找到的映射关系集合的集合标识对应的映射关系集合。然后执行步骤S404。In this application, a plurality of mapping relationship sets are generated through steps S101 and S102 in the foregoing embodiments, and the set identifiers of each mapping relationship set are different. In this step, it can be obtained from the generated multiple mapping relationship sets The set identifier of the found mapping relationship set identifies the corresponding mapping relationship set. Then step S404 is executed.
在步骤S404中,根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。In step S404, at least the fourth data is searched in the database according to the data identifiers respectively included in at least two mapping relationships in the acquired mapping relationship set.
在数据库中,存储有数据的数据标识与数据之间的对应关系。In the database, the corresponding relationship between the data identifier and the data is stored.
如果需要在数据库中查找第三数据关联的第四数据,则需要得到第四数据的数据标识。If the fourth data associated with the third data needs to be searched in the database, the data identification of the fourth data needs to be obtained.
对于第四数据的数据标识而言,可以通过获取的映射关系集合中的至少两个映射关系来获取。For the data identification of the fourth data, it may be acquired through at least two mapping relationships in the acquired mapping relationship set.
例如,在一个例子中,可以获取映射关系集合中的至少两个映射关系分别包括的数据标识。For example, in an example, data identifiers respectively included in at least two mapping relationships in the mapping relationship set may be acquired.
例如,在获取的映射关系集合中,对于任意一个数据对应的映射关系,该数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系。可以获取该映射关系中的各个数据标识,对于其他每一个数据对应的映射关系,同样执行上述操作、从而得到映射关系集合中的各个数据标识。For example, in the acquired mapping relationship set, for any mapping relationship corresponding to data, the mapping relationship corresponding to the data includes: the difference between the data identifier of the data and the identifier set including the data identifiers of the data directly related to the data mapping relationship between them. Each data identifier in the mapping relationship can be obtained, and for each other mapping relationship corresponding to data, the above operation is also performed to obtain each data identifier in the mapping relationship set.
然后可以根据获取的数据标识在数据库中获取第四数据。例如,可以对得到的数据标识去重复,以及,去除第三数据的数据标识,剩余的数据标识即为与第三数据关联的第四数据的数据标识,这样就可以根据第四数据的数据标识在数据库中获取第四数据,例如,在数据库中的数据的数据标识与数据之间的对应关系中查找第四数据的数据标识对应的数据,并作为第四数据。Then the fourth data may be acquired in the database according to the acquired data identifier. For example, the obtained data identification can be deduplicated, and the data identification of the third data can be removed, and the remaining data identification is the data identification of the fourth data associated with the third data, so that the data identification can be based on the data identification of the fourth data. Acquiring the fourth data in the database, for example, searching for the data corresponding to the data identifier of the fourth data in the corresponding relationship between the data identifier and the data in the database, and using it as the fourth data.
通过本申请,在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三 数据的数据标识相对应的映射关系集合的集合标识。然后,获取查找到的映射关系集合的集合标识对应的映射关系集合,再根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。According to this application, in the case where at least the fourth data associated with the third data needs to be searched in the database including multiple data, the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data can be searched for. The set identifier of the mapping relationship set corresponding to the data identifier of the three data. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
可见,在本申请中,不需要对数据库中的所有数据进行分析以得到第三数据关联的第四数据,从而也就不需要将数据库中的各个数据分别加载至内存中,而可以仅仅根据在上述对应关系中查找到的集合标识对应的映射关系集合来分析出第三数据关联的第四数据的数据标识,再根据第四数据的数据标识在数据库中获取第四数据。It can be seen that in this application, it is not necessary to analyze all the data in the database to obtain the fourth data associated with the third data, so that it is not necessary to load each data in the database into the memory separately, but only according to the Analyze the data identifier of the fourth data associated with the third data by analyzing the mapping relationship set corresponding to the set identifier found in the above correspondence, and then obtain the fourth data in the database according to the data identifier of the fourth data.
可见,本申请可以在内存中仅仅加载映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合等,从而减少了需要在内存中加载的数据,节省内存资源。It can be seen that the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
另外,本申请不需要对数据库中的全量的数据进行分析,而通过对映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合分析,即可实现按需分析,例如,可以实现不对与第三数据不关联的数据进行分析,减少了分析的数据量,从而可以提高查询效率。In addition, this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
另外,在数据库中的数据之间的关联关系层级较复杂的情况下,如果需要在包括多个数据的数据库中至少查找第三数据关联的第四数据,在一种方式中,可以多次递归使用join查询,耗费时间较多,导致查询效率低。而在本申请中,通过“在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识”以及“获取查找到的映射关系集合的集合标识对应的映射关系集合”两个查询步骤,即可得到与第三数据关联的所有数据的数据标识,两个查询步骤可以使用一个join查询,也即,通过本申请,使用一个join查询即可得到与第三数据关联的所有数据的数据标识,从而可以提高查询效率。In addition, in the case where the level of association between data in the database is relatively complex, if it is necessary to at least find the fourth data associated with the third data in a database including multiple data, in one way, it can be recursively multiple times Using join query takes a lot of time, resulting in low query efficiency. However, in this application, by "searching for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data" and "obtaining the found The set identification of the mapping relationship set corresponds to the mapping relationship set" two query steps, you can get the data identification of all the data associated with the third data, the two query steps can use a join query, that is, through this application, use A join query can obtain the data identifiers of all data associated with the third data, thereby improving query efficiency.
此外,有时候根据实际需求,用户可能需要查看第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系的示意图,以对第三数据以及第四数据分析统计等,在这种情况下,电子设备可以根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识、根据第三数据的数据标识得到的第三数据以及得到的第四数据,渲染用于指示第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系的示意图。In addition, sometimes according to actual needs, the user may need to view the schematic diagram of the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data, so as to understand the third data and the fourth data Analyze statistics, etc. In this case, the electronic device can obtain the third data and the obtained fourth data, rendering a schematic diagram for indicating the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data.
例如,可以根据获取的映射关系集合中的至少两个映射关系中的数据标识,确定出第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系等,然后根据第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系,可以渲染出包括第三数据以及第四数据的示意图,且示意图中能够指示出第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系等。For example, according to the data identifiers in at least two mapping relationships in the acquired mapping relationship set, the direct association relationship between the third data and at least part of the fourth data and the direct association relationship between each fourth data can be determined. , and then according to the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data, a schematic diagram including the third data and the fourth data can be rendered, and the schematic diagram can indicate that The direct association relationship between the third data and at least part of the fourth data, the direct association relationship between each fourth data, and the like.
例如,在一个实施例中,在示意图中,将具有直接关联关系的两个数据之间通过线段连接,以通过线段来指示两个数据之间具有直接关联关系等。For example, in an embodiment, in the schematic diagram, two pieces of data having a direct relationship are connected by a line segment, so as to indicate that the two pieces of data have a direct relationship and the like.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请, 某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例所涉及的动作并不一定是本申请所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the application is not limited by the described action sequence, because according to this Certain steps may be performed in another order or simultaneously, if applicable. Secondly, those skilled in the art should also know that the actions involved in the embodiments described in the specification are not necessarily required by the present application.
参照图7,示出了本申请的一种数据处理装置的结构框图,该装置具体可以包括如下模块:第一确定模块11,用于在数据库中存储有多个数据的情况下,对于多个数据中的任意一个第一数据,在数据库中确定与所述第一数据之间具有直接关联关系的第二数据;第一生成模块12,用于生成所述第一数据对应的映射关系,第一数据对应的映射关系包括:第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系;组合模块13,用于在得到多个数据中的各个数据分别对应的映射关系的情况下,将包括的数据标识存在交集的至少两个数据分别对应的映射关系组合为一个映射关系集合,任意两个映射关系集合中的数据标识不存在交集;第一存储模块14,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,存储所述映射关系集合的集合标识以及包括所述映射关系集合中的数据标识的标识集合。Referring to FIG. 7 , it shows a structural block diagram of a data processing device of the present application, which may specifically include the following modules: a first determining module 11, configured to store multiple data in the database, for multiple For any one of the first data in the data, determine the second data that has a direct relationship with the first data in the database; the first generation module 12 is used to generate the mapping relationship corresponding to the first data, the first The mapping relationship corresponding to one data includes: the mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data; the combination module 13 is used to obtain each data in the plurality of data respectively In the case of the corresponding mapping relationship, at least two data corresponding to the included data identifiers that have an intersection are combined into a mapping relationship set, and the data identifiers in any two mapping relationship sets do not have an intersection; the first storage module 14. In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, store the set identifier of the mapping relationship set and an identification set including the data identifiers in the mapping relationship set.
在一实施方式中,所述装置还包括:第二确定模块,用于在数据库中添加了新的数据的情况下,在数据库中确定与新的数据之间具有直接关联关系的关联数据的数据标识;第一查找模块,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识;第一获取模块,用于获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与新的数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:所述数据的数据标识与包括与所述数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;第三确定模块,用于在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,第一添加模块,用于在关联数据对应的映射关系中的标识集合中,添加新的数据的数据标识;第二生成模块,用于生成新的数据对应的映射关系,新的数据对应的映射关系包括:新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,第二添加模块,用于在获取的映射关系集合中,添加新的数据对应的映射关系。In one embodiment, the device further includes: a second determination module, configured to determine in the database the data of the associated data that has a direct association relationship with the new data when new data is added to the database Identification; the first search module is used to search for the set identification of the mapping relationship set corresponding to the data identification of the associated data in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data; the first acquisition module, It is used to obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set. The obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the new data, and any one of the at least two data The mapping relationship corresponding to the data includes: the mapping relationship between the data identification of the data and the identification set including the data identification of the data that has a direct relationship with the data; the third determination module is used to obtain the mapping relationship set In this method, the mapping relationship corresponding to the associated data is determined, the mapping relationship corresponding to the associated data includes: the mapping relationship between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct association relationship with the associated data, the first adding module is used to add the data identifier of new data to the identifier set in the mapping relationship corresponding to the associated data; the second generation module is used to generate the mapping relationship corresponding to the new data, and the mapping relationship corresponding to the new data includes: new The mapping relationship between the data identification of the data and the identification set including the determined data identification of the associated data, the second adding module is used to add the mapping relationship corresponding to the new data in the obtained mapping relationship set.
在一实施方式中,所述装置还包括:第四确定模块,用于在数据库中删除了旧的数据的情况下,在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识;第二查找模块,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识;第二获取模块,用于获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:旧的数据对应的映射关系以及与旧的数据关联的至少两个数据分别对应的映射关系,旧的数据对应的映射关系包括:旧的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:数据的数据标识与包括与数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;第五确定模块,用于在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,第二删除模块,用于在关联数据对应的映射关系中的标识集 合中,删除旧的数据的数据标识;第一删除模块,用于在获取的映射关系集合中,删除旧的数据对应的映射关系。In one embodiment, the device further includes: a fourth determination module, configured to determine in the database the data of the associated data that has a direct association relationship with the old data in the case that the old data is deleted in the database Identification; the second search module is used to search for the set identification of the mapping relationship set corresponding to the data identification of the associated data in the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data; the second acquisition module, It is used to acquire the mapping relationship set corresponding to the set identification of the found mapping relationship set, and the acquired mapping relationship set includes: the mapping relationship corresponding to the old data and the mapping relationship corresponding to at least two data associated with the old data, The mapping relationship corresponding to the old data includes: the mapping relationship between the data identifier of the old data and the identification set including the determined data identifier of the associated data, and the mapping relationship corresponding to any one of the at least two data includes: The mapping relationship between the data identification and the identification set including the data identification of the data that has a direct relationship with the data; the fifth determination module is used to determine the mapping relationship corresponding to the associated data in the obtained mapping relationship set, and the associated data The corresponding mapping relationship includes: the mapping relationship between the data identification of the associated data and the identification set including the data identification of the data that has a direct relationship with the associated data, and the second deletion module is used for the mapping relationship corresponding to the associated data. In the identification set, delete the data identification of the old data; the first deletion module is used to delete the mapping relationship corresponding to the old data in the obtained mapping relationship set.
在一实施方式中,所述装置还包括:第二存储模块,用于在数据库中确定与所述第一数据之间具有直接关联关系的第二数据之后,在数据的数据标识与数据的数据标识之间的直接关联表中,存储所述第一数据的数据标识与所述第二数据的数据标识。In one embodiment, the device further includes: a second storage module, configured to, after determining the second data that has a direct relationship with the first data in the database, after the data identification of the data and the data of the data The data identifier of the first data and the data identifier of the second data are stored in the direct association table between identifiers.
在一实施方式中,所述第四确定模块具体用于:在数据的数据标识与数据的数据标识之间的直接关联表中,查找与旧的数据的数据标识相对应的数据的数据标识,并作为与旧的数据之间具有直接关联关系的关联数据的数据标识。In an embodiment, the fourth determining module is specifically configured to: search for the data identifier of the data corresponding to the old data identifier in the direct association table between the data identifier and the data identifier, And as the data identifier of the associated data that has a direct relationship with the old data.
通过本申请,可以实现对数据库中的多个数据之间的关联关系进行记录,以便之后在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识。然后,获取查找到的映射关系集合的集合标识对应的映射关系集合,再根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。Through this application, it is possible to record the association relationship between multiple data in the database, so that when it is necessary to find at least the fourth data associated with the third data in the database including multiple data, it can be used in the mapping In the corresponding relationship between the set identifier of the relation set and the data identifier of the data, the set identifier of the mapping relation set corresponding to the data identifier of the third data is searched. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
可见,在本申请中,不需要对数据库中的所有数据进行分析以得到第三数据关联的第四数据,从而也就不需要将数据库中的各个数据分别加载至内存中,而可以仅仅根据在上述对应关系中查找到的集合标识对应的映射关系集合来分析出第三数据关联的第四数据的数据标识,再根据第四数据的数据标识在数据库中获取第四数据。It can be seen that in this application, it is not necessary to analyze all the data in the database to obtain the fourth data associated with the third data, so that it is not necessary to load each data in the database into the memory separately, but only according to the Analyze the data identifier of the fourth data associated with the third data by analyzing the mapping relationship set corresponding to the set identifier found in the above correspondence, and then obtain the fourth data in the database according to the data identifier of the fourth data.
可见,本申请可以在内存中仅仅加载映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合等,从而减少了需要在内存中加载的数据,节省内存资源。It can be seen that the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
另外,本申请不需要对数据库中的全量的数据进行分析,而通过对映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合分析,即可实现按需分析,例如,可以实现不对与第三数据不关联的数据进行分析,减少了分析的数据量,从而可以提高查询效率。In addition, this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
另外,在数据库中的数据之间的关联关系层级较复杂的情况下,如果需要在包括多个数据的数据库中至少查找第三数据关联的第四数据,在一种方式中,可以多次递归使用join查询,耗费时间较多,导致查询效率低。而在本申请中,通过“在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识”以及“获取查找到的映射关系集合的集合标识对应的映射关系集合”两个查询步骤,即可得到与第三数据关联的所有数据的数据标识,两个查询步骤可以使用一个join查询,也即,通过本申请,使用一个join查询即可得到与第三数据关联的所有数据的数据标识,从而可以提高查询效率。In addition, in the case where the level of association between data in the database is relatively complex, if it is necessary to at least find the fourth data associated with the third data in a database including multiple data, in one way, it can be recursively multiple times Using join query takes a lot of time, resulting in low query efficiency. However, in this application, by "searching for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data" and "obtaining the found The set identification of the mapping relationship set corresponds to the mapping relationship set" two query steps, you can get the data identification of all the data associated with the third data, the two query steps can use a join query, that is, through this application, use A join query can obtain the data identifiers of all data associated with the third data, thereby improving query efficiency.
参照图8,示出了本申请的一种数据处理装置的结构框图,该装置具体可以包括如下模块:第三获取模块21,用于在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,获取第三数据的数据标识;第三查找模块22,用于在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识;第四获取模块23,用于获取查找到的映射关系集合的集合标识对应的 映射关系集合,获取的映射关系集合中包括:与第三数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:该数据的数据标识与包括与该数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;第四查找模块24,用于根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。Referring to FIG. 8 , it shows a structural block diagram of a data processing device of the present application, and the device may specifically include the following modules: a third acquisition module 21, configured to search at least the third data in a database including multiple data In the case of the associated fourth data, obtain the data identifier of the third data; the third search module 22 is configured to search for the data of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data Identify the set identifier of the corresponding mapping relationship set; the fourth acquisition module 23 is used to acquire the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and the acquired mapping relationship set includes: at least The mapping relationship corresponding to the two data, the mapping relationship corresponding to any one of the at least two data includes: the mapping between the data identifier of the data and the identifier set including the data identifier of the data that has a direct relationship with the data Relationship; the fourth search module 24 is configured to search at least fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the acquired mapping relationship set.
在一实施方式中,所述第四查找模块包括:第一获取单元,用于获取映射关系集合中的所述至少两个映射关系分别包括数据标识;第二获取单元,用于根据获取的数据标识在所述数据库中至少获取第四数据。In one embodiment, the fourth search module includes: a first acquisition unit, configured to acquire the at least two mapping relationships in the mapping relationship set that respectively include data identifiers; a second acquisition unit, configured to It is identified that at least fourth data is acquired in the database.
在一实施方式中,所述装置还包括:渲染模块,用于根据获取的映射关系集合中的所述至少两个映射关系中分别包括的数据标识、根据所述第三数据的数据标识得到的第三数据以及所述第四数据,渲染用于指示所述第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系的示意图。In an embodiment, the device further includes: a rendering module, configured to obtain data identifiers respectively included in the at least two mapping relationships in the acquired mapping relationship set and data identifiers of the third data. The third data and the fourth data render a schematic diagram for indicating the direct association relationship between the third data and at least part of the fourth data and the direct association relationship between each fourth data.
通过本申请,在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,可以在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识。然后,获取查找到的映射关系集合的集合标识对应的映射关系集合,再根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。According to this application, in the case where at least the fourth data associated with the third data needs to be searched in the database including multiple data, the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data can be searched for. The set identifier of the mapping relationship set corresponding to the data identifier of the three data. Then, obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, and then search at least the fourth data in the database according to the data identifiers respectively included in at least two mapping relationships in the obtained mapping relationship set.
可见,在本申请中,不需要对数据库中的所有数据进行分析以得到第三数据关联的第四数据,从而也就不需要将数据库中的各个数据分别加载至内存中,而可以仅仅根据在上述对应关系中查找到的集合标识对应的映射关系集合来分析出第三数据关联的第四数据的数据标识,再根据第四数据的数据标识在数据库中获取第四数据。It can be seen that in this application, it is not necessary to analyze all the data in the database to obtain the fourth data associated with the third data, so that it is not necessary to load each data in the database into the memory separately, but only according to the Analyze the data identifier of the fourth data associated with the third data by analyzing the mapping relationship set corresponding to the set identifier found in the above correspondence, and then obtain the fourth data in the database according to the data identifier of the fourth data.
可见,本申请可以在内存中仅仅加载映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合等,从而减少了需要在内存中加载的数据,节省内存资源。It can be seen that the present application can only load the corresponding relationship between the set identification of the mapping relationship set and the data identification of the data in the memory, and the mapping relationship set corresponding to the set identification of the found mapping relationship set, thereby reducing the need to store data in the memory. Loaded data saves memory resources.
另外,本申请不需要对数据库中的全量的数据进行分析,而通过对映射关系集合的集合标识与数据的数据标识之间的对应关系以及查找到的映射关系集合的集合标识对应的映射关系集合分析,即可实现按需分析,例如,可以实现不对与第三数据不关联的数据进行分析,减少了分析的数据量,从而可以提高查询效率。In addition, this application does not need to analyze the full amount of data in the database, but through the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data and the mapping relationship set corresponding to the set identifier of the found mapping relationship set Analysis means that on-demand analysis can be realized. For example, data that is not associated with the third data can be analyzed, reducing the amount of analyzed data, thereby improving query efficiency.
另外,在数据库中的数据之间的关联关系层级较复杂的情况下,如果需要在包括多个数据的数据库中至少查找第三数据关联的第四数据,在一种方式中,可以多次递归使用join查询,耗费时间较多,导致查询效率低。而在本申请中,通过“在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识”以及“获取查找到的映射关系集合的集合标识对应的映射关系集合”两个查询步骤,即可得到与第三数据关联的所有数据的数据标识,两个查询步骤可以使用一个join查询,也即,通过本申请,使用一个join查询即可得到与第三数据关联的所有数据的数据标识,从而可以提高查询效率。In addition, in the case where the level of association between data in the database is relatively complex, if it is necessary to at least find the fourth data associated with the third data in a database including multiple data, in one way, it can be recursively multiple times Using join query takes a lot of time, resulting in low query efficiency. However, in this application, by "searching for the set identifier of the mapping relationship set corresponding to the data identifier of the third data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data" and "obtaining the found The set identification of the mapping relationship set corresponds to the mapping relationship set" two query steps, you can get the data identification of all the data associated with the third data, the two query steps can use a join query, that is, through this application, use A join query can obtain the data identifiers of all data associated with the third data, thereby improving query efficiency.
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在设备时,可以使得该设备执行本申请实施例 中各方法步骤的指令(instructions)。The embodiment of the present application also provides a non-volatile readable storage medium, and one or more modules (programs) are stored in the storage medium. When the one or more modules are applied to the device, the device can execute Instructions for each method step in the embodiments of the present application.
本申请实施例提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得电子设备执行如上述实施例中一个或多个所述的方法。本申请实施例中,所述电子设备包括服务器、网关、子设备等,子设备为物联网设备等设备。The embodiments of the present application provide one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the electronic device executes the method described in one or more of the above embodiments. In the embodiment of the present application, the electronic device includes a server, a gateway, a sub-device, etc., and the sub-device is an Internet of Things device or the like.
本公开的实施例可被实现为使用任意适当的硬件,固件,软件,或及其任意组合进行想要的配置的装置,该装置可包括服务器(集群)、终端设备如IoT设备等电子设备。Embodiments of the present disclosure can be implemented as an apparatus using any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the apparatus may include servers (clusters), terminal devices such as IoT devices and other electronic devices.
图9示意性地示出了可被用于实现本申请中所述的各个实施例的示例性装置1300。FIG. 9 schematically illustrates an exemplary apparatus 1300 that may be used to implement various embodiments described in this application.
对于一个实施例,图9示出了示例性装置1300,该装置具有一个或多个处理器1302、被耦合到(一个或多个)处理器1302中的至少一个的控制模块(芯片组)1304、被耦合到控制模块1304的存储器1306、被耦合到控制模块1304的非易失性存储器(NVM)/存储设备1308、被耦合到控制模块1304的一个或多个输入/输出设备1310,和被耦合到控制模块1304的网络接口1312。For one embodiment, FIG. 9 illustrates an exemplary apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
处理器1302可包括一个或多个单核或多核处理器,处理器1302可包括通用处理器或专用处理器(例如图形处理器、应用处理器、基频处理器等)的任意组合。在一些实施例中,装置1300能够作为本申请实施例中所述网关等服务器设备。The processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1300 can serve as a server device such as a gateway in the embodiments of this application.
在一些实施例中,装置1300可包括具有指令1314的一个或多个计算机可读介质(例如,存储器1306或NVM/存储设备1308)和与该一个或多个计算机可读介质相合并被配置为执行指令1314以实现模块从而执行本公开中所述的动作的一个或多个处理器1302。In some embodiments, apparatus 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM/storage 1308) having instructions 1314 and in combination with the one or more computer-readable media configured to The one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
对于一个实施例,控制模块1304可包括任意适当的接口控制器,以向(一个或多个)处理器1302中的至少一个和/或与控制模块1304通信的任意适当的设备或组件提供任意适当的接口。For one embodiment, the control module 1304 may include any suitable interface controller to provide any suitable Interface.
控制模块1304可包括存储器控制器模块,以向存储器1306提供接口。存储器控制器模块可以是硬件模块、软件模块和/或固件模块。The control module 1304 may include a memory controller module to provide an interface to the memory 1306 . A memory controller module may be a hardware module, a software module and/or a firmware module.
存储器1306可被用于例如为装置1300加载和存储数据和/或指令1314。对于一个实施例,存储器1306可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,存储器1306可包括双倍数据速率四同步动态随机存取存储器(DDR4SDRAM)。Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for apparatus 1300 . For one embodiment, memory 1306 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, memory 1306 may include Double Data Rate Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).
对于一个实施例,控制模块1304可包括一个或多个输入/输出控制器,以向NVM/存储设备1308及(一个或多个)输入/输出设备1310提供接口。For one embodiment, control module 1304 may include one or more input/output controllers to provide interfaces to NVM/storage device(s) 1308 and input/output device(s) 1310 .
例如,NVM/存储设备1308可被用于存储数据和/或指令1314。NVM/存储设备1308可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。For example, NVM/storage 1308 may be used to store data and/or instructions 1314 . NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives ( HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives).
NVM/存储设备1308可包括在物理上作为装置1300被安装在其上的设备的一部分的存储资源,或者其可被该设备访问可不必作为该设备的一部分。例如,NVM/存储设备1308可通过网络经由(一个或多个)输入/输出设备1310进行访问。NVM/storage 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or may not necessarily be part of the device that are accessible by the device. For example, NVM/storage 1308 may be accessed over a network via input/output device(s) 1310 .
(一个或多个)输入/输出设备1310可为装置1300提供接口以与任意其他适当的设备通信,输入/输出设备1310可以包括通信组件、拼音组件、传感器组件等。网络接口1312可为装置1300提供接口以通过一个或多个网络通信,装置1300可根据一个或多个无线 网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信,例如接入基于通信标准的无线网络,如WiFi、2G、3G、4G、5G等,或它们的组合进行无线通信。The input/output device(s) 1310 may provide an interface for the apparatus 1300 to communicate with any other suitable device, and the input/output device 1310 may include a communication component, a pinyin component, a sensor component, and the like. Network interface 1312 may provide an interface for device 1300 to communicate over one or more networks, and device 1300 may communicate with one or more wireless networks according to any of one or more wireless network standards and/or protocols. Components communicate wirelessly, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination of them for wireless communication.
对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器(例如,存储器控制器模块)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 (eg, a memory controller module). For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die as the logic of the one or more controllers of the control module 1304 . For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of the one or more controllers of the control module 1304 to form a system on chip (SoC).
在各个实施例中,装置1300可以但不限于是:服务器、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等终端设备。在各个实施例中,装置1300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,装置1300包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, the apparatus 1300 may be, but not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, device 1300 may have more or fewer components and/or a different architecture. For example, in some embodiments, device 1300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit ( ASIC) and speakers.
本申请实施例提供了一种电子设备,包括:一个或多个处理器;和,其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述电子设备执行如本申请中一个或多个所述的方法。An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The electronic device is caused to perform one or more of the methods described in this application.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、和流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程信息处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程信息处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a general-purpose computer, special purpose computer, embedded processor or processor of other programmable information processing terminal equipment to produce a machine, so that the instructions executed by the computer or other programmable information processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程信息处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable information processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程信息处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable information processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
尽管已描述了本申请的一些实施例,但本领域内的技术人员一旦得知了基本创造性概 念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括这些实施例和落入本申请实施例范围的所有变更和修改。While a few embodiments of the present application have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to include these embodiments and all changes and modifications that fall within the scope of the embodiments of the application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or terminal equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本申请所提供的数据处理方法及装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The data processing method and device provided by the application have been introduced in detail above. The principles and implementation methods of the application have been explained by using specific examples in this paper. The descriptions of the above embodiments are only used to help understand the methods and methods of the application. Its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. limit.

Claims (10)

  1. 一种数据处理方法,所述方法包括:A data processing method, the method comprising:
    在数据库中存储有多个数据的情况下,对于多个数据中的任意一个第一数据,在数据库中确定与所述第一数据之间具有直接关联关系的第二数据;生成所述第一数据对应的映射关系,第一数据对应的映射关系包括:第一数据的数据标识与包括确定出的第二数据的数据标识的标识集合之间的映射关系;In the case of storing a plurality of data in the database, for any first data in the plurality of data, determine in the database the second data that has a direct association relationship with the first data; generate the first data The mapping relationship corresponding to the data, the mapping relationship corresponding to the first data includes: the mapping relationship between the data identifier of the first data and the identifier set including the determined data identifier of the second data;
    在得到多个数据中的各个数据分别对应的映射关系的情况下,将包括的数据标识存在交集的至少两个数据分别对应的映射关系组合为一个映射关系集合,任意两个映射关系集合中的数据标识不存在交集;In the case of obtaining the mapping relationships corresponding to each data in the plurality of data, the mapping relationships corresponding to at least two data whose included data identifiers have intersections are combined into a mapping relationship set, and any two mapping relationship sets in There is no intersection of data identifiers;
    在映射关系集合的集合标识与数据的数据标识之间的对应关系中,存储所述映射关系集合的集合标识以及包括所述映射关系集合中的数据标识的标识集合。In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, the set identifier of the mapping relationship set and an identification set including the data identifiers in the mapping relationship set are stored.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在数据库中添加了新的数据的情况下,在数据库中确定与新的数据之间具有直接关联关系的关联数据的数据标识;When new data is added to the database, determine in the database the data identification of the associated data that has a direct relationship with the new data;
    在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识;Finding the set identifier of the mapping relationship set corresponding to the data identifier of the associated data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data;
    获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与新的数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:所述数据的数据标识与包括与所述数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;Obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set. The obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the new data, and any one of the at least two data corresponds to The mapping relationship includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the data having a direct relationship with the data;
    在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,在关联数据对应的映射关系中的标识集合中,添加新的数据的数据标识;In the acquired mapping relationship set, determine the mapping relationship corresponding to the associated data. The mapping relationship corresponding to the associated data includes: the mapping between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct relationship with the associated data. Relationship, in the identification set in the mapping relationship corresponding to the associated data, add the data identification of the new data;
    以及,生成新的数据对应的映射关系,新的数据对应的映射关系包括:新的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,在获取的映射关系集合中,添加新的数据对应的映射关系。And, generate a mapping relationship corresponding to the new data, the mapping relationship corresponding to the new data includes: the mapping relationship between the data identifier of the new data and the identifier set including the determined data identifier of the associated data, and the acquired mapping relationship In the collection, add the mapping relationship corresponding to the new data.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在数据库中删除了旧的数据的情况下,在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识;In the case that the old data is deleted in the database, determine the data identification of the associated data that has a direct relationship with the old data in the database;
    在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找与关联数据的数据标识相对应的映射关系集合的集合标识;Finding the set identifier of the mapping relationship set corresponding to the data identifier of the associated data in the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data;
    获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:旧的数据对应的映射关系以及与旧的数据关联的至少两个数据分别对应的映射关系,旧的数据对应的映射关系包括:旧的数据的数据标识与包括确定出的关联数据的数据标识的标识集合之间的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:所述数据的数据标识与包括与所述数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;Obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set, the acquired mapping relationship set includes: the mapping relationship corresponding to the old data and the mapping relationship corresponding to at least two data associated with the old data, the old The mapping relationship corresponding to the data includes: the mapping relationship between the data identifier of the old data and the identification set including the determined data identifier of the associated data, and the mapping relationship corresponding to any one of the at least two data includes: the data The mapping relationship between the data identifier of the data and the identifier set including the data identifier of the data having a direct relationship with the data;
    在获取的映射关系集合中,确定关联数据对应的映射关系,关联数据对应的映射关系包括:关联数据的数据标识与包括与关联数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系,在关联数据对应的映射关系中的标识集合中,删除旧的数据的数据标识;In the acquired mapping relationship set, determine the mapping relationship corresponding to the associated data. The mapping relationship corresponding to the associated data includes: the mapping between the data identifier of the associated data and the identifier set including the data identifier of the data that has a direct relationship with the associated data. relationship, in the identification set in the mapping relationship corresponding to the associated data, delete the data identification of the old data;
    以及,在获取的映射关系集合中,删除旧的数据对应的映射关系。And, in the acquired mapping relationship set, delete the mapping relationship corresponding to the old data.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    在数据库中确定与所述第一数据之间具有直接关联关系的第二数据之后,在数据的数据标识与数据的数据标识之间的直接关联表中,存储所述第一数据的数据标识与所述第二数据的数据标识。After the second data having a direct association relationship with the first data is determined in the database, the data identifier and the data identifier of the first data are stored in a direct association table between the data identifier and the data identifier. The data identifier of the second data.
  5. 根据权利要求4所述的方法,其中,所述在数据库中确定与旧的数据之间具有直接关联关系的关联数据的数据标识,包括:The method according to claim 4, wherein said determining in the database the data identification of the associated data that has a direct association relationship with the old data comprises:
    在数据的数据标识与数据的数据标识之间的直接关联表中,查找与旧的数据的数据标识相对应的数据的数据标识,并作为与旧的数据之间具有直接关联关系的关联数据的数据标识。In the direct association table between the data ID and the data ID, find the data ID corresponding to the old data ID, and use it as the associated data that has a direct association relationship with the old data Data ID.
  6. 一种数据处理方法,所述方法包括:A data processing method, the method comprising:
    在需要在包括多个数据的数据库中至少查找第三数据关联的第四数据的情况下,获取第三数据的数据标识;Acquiring the data identifier of the third data when it is necessary to search at least fourth data associated with the third data in the database including multiple data;
    在映射关系集合的集合标识与数据的数据标识之间的对应关系中,查找第三数据的数据标识相对应的映射关系集合的集合标识;In the corresponding relationship between the set identifier of the mapping relationship set and the data identifier of the data, search for the set identifier of the mapping relationship set corresponding to the data identifier of the third data;
    获取查找到的映射关系集合的集合标识对应的映射关系集合,获取的映射关系集合中包括:与第三数据关联的至少两个数据分别对应的映射关系,至少两个数据中的任意一个数据对应的映射关系包括:所述数据的数据标识与包括与所述数据具有直接关联关系的数据的数据标识的标识集合之间的映射关系;Obtain the mapping relationship set corresponding to the set identifier of the found mapping relationship set. The obtained mapping relationship set includes: the mapping relationship corresponding to at least two data associated with the third data, and any one of the at least two data corresponds to The mapping relationship includes: the mapping relationship between the data identifier of the data and the identifier set including the data identifier of the data having a direct relationship with the data;
    根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据。At least the fourth data is searched in the database according to the data identifiers respectively included in at least two mapping relationships in the acquired mapping relationship set.
  7. 根据权利要求6所述的方法,其中,所述根据获取的映射关系集合中的至少两个映射关系中分别包括的数据标识,在数据库中至少查找第四数据,包括:The method according to claim 6, wherein, according to the data identifiers respectively included in at least two mapping relationships in the acquired mapping relationship set, searching for at least the fourth data in the database includes:
    获取映射关系集合中的所述至少两个映射关系分别包括数据标识;Obtaining the at least two mapping relationships in the mapping relationship set respectively include data identifiers;
    根据获取的数据标识在所述数据库中至少获取第四数据。At least fourth data is acquired in the database according to the acquired data identification.
  8. 根据权利要求6或7所述的方法,其中,所述方法还包括:The method according to claim 6 or 7, wherein the method further comprises:
    根据获取的映射关系集合中的所述至少两个映射关系中分别包括的数据标识、根据所述第三数据的数据标识得到的第三数据以及所述第四数据,渲染用于指示所述第三数据与至少部分第四数据之间的直接关联关系以及各个第四数据之间的直接关联关系的示意图。According to the data identifiers respectively included in the at least two mapping relationships in the obtained mapping relationship set, the third data obtained according to the data identifier of the third data, and the fourth data, rendering a display for indicating the first A schematic diagram of the direct relationship between the third data and at least part of the fourth data and the direct relationship between each fourth data.
  9. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至8中任一项所述的方法的步骤。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements any one of claims 1 to 8 when executing the program. The steps of the method.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
PCT/CN2022/134455 2021-11-30 2022-11-25 Data processing method and apparatus WO2023098593A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111436096.2A CN113849524B (en) 2021-11-30 2021-11-30 Data processing method and device
CN202111436096.2 2021-11-30

Publications (1)

Publication Number Publication Date
WO2023098593A1 true WO2023098593A1 (en) 2023-06-08

Family

ID=78982271

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134455 WO2023098593A1 (en) 2021-11-30 2022-11-25 Data processing method and apparatus

Country Status (2)

Country Link
CN (1) CN113849524B (en)
WO (1) WO2023098593A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849524B (en) * 2021-11-30 2022-10-18 阿里云计算有限公司 Data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871181A (en) * 2017-12-01 2019-06-11 航天信息股份有限公司 A kind of Object Access method and device
US20190220533A1 (en) * 2018-01-17 2019-07-18 Sap Se Integrated database table access
CN112084270A (en) * 2020-09-17 2020-12-15 腾讯科技(深圳)有限公司 Data blood margin processing method and device, storage medium and equipment
CN113434501A (en) * 2021-06-23 2021-09-24 平安国际智慧城市科技股份有限公司 Storage method and device of relational database table and readable storage medium
CN113849524A (en) * 2021-11-30 2021-12-28 阿里云计算有限公司 Data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399175B (en) * 2017-02-07 2022-04-12 阿里巴巴集团控股有限公司 Data storage and query method and device
CN111241111B (en) * 2020-02-12 2023-09-26 网易(杭州)网络有限公司 Data query method and device, data comparison method and device, medium and equipment
CN111984293B (en) * 2020-08-17 2023-09-12 腾讯科技(上海)有限公司 Information processing method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871181A (en) * 2017-12-01 2019-06-11 航天信息股份有限公司 A kind of Object Access method and device
US20190220533A1 (en) * 2018-01-17 2019-07-18 Sap Se Integrated database table access
CN112084270A (en) * 2020-09-17 2020-12-15 腾讯科技(深圳)有限公司 Data blood margin processing method and device, storage medium and equipment
CN113434501A (en) * 2021-06-23 2021-09-24 平安国际智慧城市科技股份有限公司 Storage method and device of relational database table and readable storage medium
CN113849524A (en) * 2021-11-30 2021-12-28 阿里云计算有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN113849524A (en) 2021-12-28
CN113849524B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US9239853B2 (en) Automatic consistent sampling for data analysis
US11003625B2 (en) Method and apparatus for operating on file
US10534753B2 (en) Caseless file lookup in a distributed file system
WO2021217846A1 (en) Interface data processing method and apparatus, and computer device and storage medium
MX2013014800A (en) Recommending data enrichments.
US10762068B2 (en) Virtual columns to expose row specific details for query execution in column store databases
WO2023232120A1 (en) Data processing method, electronic device, and storage medium
WO2014110940A1 (en) A method, apparatus and system for storing, reading the directory index
US10366081B2 (en) Declarative partitioning for data collection queries
US20200042609A1 (en) Methods and systems for searching directory access groups
WO2023098593A1 (en) Data processing method and apparatus
WO2023103338A1 (en) Data processing method and apparatus, and device and storage medium
CN113220710B (en) Data query method, device, electronic equipment and storage medium
US10872103B2 (en) Relevance optimized representative content associated with a data storage system
CN111125216A (en) Method and device for importing data into Phoenix
US10146791B2 (en) Open file rebalance
CN110727672A (en) Data mapping relation query method and device, electronic equipment and readable medium
US10114864B1 (en) List element query support and processing
US11074244B1 (en) Transactional range delete in distributed databases
US11609909B2 (en) Zero copy optimization for select * queries
CN115168409B (en) Data query method and device for database sub-tables and computer equipment
US11204909B2 (en) Internal tables for accessing data stored in a database
CN117891792A (en) Database data sharing method and device, electronic equipment and storage medium
CN116860700A (en) Method, device, equipment and medium for processing metadata in distributed file system
CN115113798A (en) Data migration method, system and equipment applied to distributed storage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900397

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE