A data storage and calculation method and device

Through the data storage and calculation integrated engine, the calculation data is directly obtained from the local memory partition in big data processing, which solves the problems of large network input and output load and slow calculation speed in the existing technology, and achieves more efficient data processing.

CN118132010BActive Publication Date: 2024-08-23KMERIT SUZHOU INFORMATION SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410534559.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

Due to the separation of storage engine and computing engine in the existing big data processing architecture, the network input and output load increases and the real-time data calculation speed is too slow.

Method used

Using an integrated data storage and computing engine, the association between the target data object and its corresponding memory partition and computing partition is determined through a unique business identifier, and the data is directly obtained from the local memory partition for calculation, avoiding cross-node data transmission.

Benefits of technology

It reduces network input and output data transmission, improves computing speed and local memory data reading and writing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118132010B
    Figure CN118132010B
Patent Text Reader

Abstract

The present invention discloses a data storage and computing method and device, and relates to the field of data processing technology. The method mainly includes: using a data storage and computing integrated engine to receive computing tasks, and determining the unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including computing partitions and memory partitions, and there is an associated mapping relationship between the computing partitions and the memory partitions; determining the target data object based on the unique business identifier, and determining the target memory partition of the target data object from the data storage and computing integrated engine; based on the associated mapping relationship between the computing partition and the memory partition, determining the target computing partition that has an associated mapping relationship with the target memory partition; obtaining the data involved in the computing from the target memory partition and sending it to the target computing partition, so that the target computing partition performs the computing task. This implementation method can reduce the transmission of network input and output data, improve the local memory data reading and writing capabilities, and improve the computing speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data storage and calculation method and device. Background Art

[0002] With the development of big data technology, the requirements for big data processing in various fields are constantly increasing.

[0003] At present, the commonly used big data processing architecture is a storage-computing separation architecture. However, due to the separation of the storage engine and the computing engine, this architecture consumes a large amount of network traffic and storage traffic during the data processing process, resulting in an increase in network input and output loads. Therefore, the real-time calculation speed of data is too slow.

[0004] In summary, there is an urgent need for a method that can solve the problems of heavy network input and output load and slow real-time data calculation speed in the current big data processing process. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a data storage and calculation method and device to solve the problems of heavy network input and output load and slow real-time data calculation speed in the current big data processing process.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a data storage and calculation method is provided.

[0007] A data storage and calculation method according to an embodiment of the present invention includes:

[0008] A data storage and computing integrated engine is used to receive computing tasks and determine the unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including computing partitions and memory partitions, and there is an associated mapping relationship between the computing partitions and the memory partitions;

[0009] Determine the target data object based on the unique business identifier, and determine the target memory partition of the target data object from the data storage and computing engine;

[0010] Based on the association mapping relationship between the computing partition and the memory partition, determine a target computing partition that has an association mapping relationship with the target memory partition;

[0011] The data involved in the calculation is obtained from the target memory partition and sent to the target calculation partition, so that the target calculation partition performs the calculation task.

[0012] Optionally, establishing an association mapping relationship between the computing partition and the memory partition includes:

[0013] Embed the driver of the storage engine into the driver of the computing engine; wherein the storage engine and the computing engine are both distributed engines;

[0014] The memory partitions in each node are associated and mapped with the computing partitions to obtain an associated mapping relationship between the memory partitions and the computing partitions.

[0015] Optionally, the above-mentioned associating and mapping the memory partition and the computing partition in each node includes:

[0016] Encapsulate the data to be stored into different data objects based on the unique business identifier;

[0017] Allocate the above data objects to each node;

[0018] For each node, the above different data objects are written into each memory partition, and each memory partition is allocated to each computing partition, so that each computing partition is associated and mapped with the corresponding memory partition.

[0019] Optionally, the above allocating each memory partition to each computing partition includes:

[0020] Allocate each of the above memory partitions evenly to each of the above computing partitions; or,

[0021] Based on the computing power of the computing partitions, each of the memory partitions is allocated to each of the computing partitions.

[0022] Optionally, embedding the storage engine driver into the computing engine driver includes:

[0023] The code of the storage engine driver is written into the code of the computing engine driver.

[0024] Optionally, embedding the storage engine driver into the computing engine driver includes:

[0025] Based on the driver program of the storage engine, compile a storage engine startup script; load the storage engine startup script into the driver program of the computing engine.

[0026] Optionally, the above method further includes:

[0027] The data generated in the process of executing the above computing task or the data generated by the data production end is used as the new data, and the unique business identifier of the new data is obtained;

[0028] In response to the unique business identifier of the newly added data being an existing unique business identifier, storing the newly added data in the memory partition where the data object having the same unique business identifier is located;

[0029] In response to the unique business identifier of the newly added data being a newly added unique business identifier, the newly added data is encapsulated into a data object based on the unique business identifier and written into the memory partition.

[0030] To achieve the above objective, according to another aspect of an embodiment of the present invention, a data storage and computing device is provided.

[0031] A data storage and computing device according to an embodiment of the present invention includes:

[0032] A receiving module, used to receive a computing task using a data storage and computing integrated engine, and determine a unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including a computing partition and a memory partition, and there is an associated mapping relationship between the computing partition and the memory partition;

[0033] A first determination module is used to determine the target data object based on the unique business identifier, and determine the target memory partition of the target data object from the data storage and computing integrated engine;

[0034] A second determination module is used to determine a target computing partition that has an associated mapping relationship with the target memory partition based on the associated mapping relationship between the computing partition and the memory partition;

[0035] The execution module is used to obtain the data involved in the calculation from the target memory partition and send it to the target calculation partition, so that the target calculation partition executes the calculation task.

[0036] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for data storage and calculation is provided.

[0037] An electronic device for data storage and computing according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a data storage and computing method according to an embodiment of the present invention.

[0038] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0039] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements a data storage and calculation method according to an embodiment of the present invention.

[0040] An embodiment of the above invention has the following advantages or beneficial effects: after receiving a computing task using a pre-configured data storage and computing integrated engine, the target data object of the data participating in the calculation is determined by a unique business identifier, and the target computing partition corresponding to the target memory partition storing the target data object is determined according to the associated mapping relationship between the computing partition and the memory partition in the above data storage and computing integrated engine, so that the target computing partition can directly obtain the data participating in the calculation from the local target memory partition with which there is an associated mapping relationship, avoiding the need to obtain the data participating in the calculation from other nodes of the distributed engine when processing the computing task, thereby reducing the transmission of network input and output data, improving the local memory data reading and writing capabilities, and further improving the calculation speed.

[0041] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0043] Figure 1 is a flowchart of a data storage and calculation method according to an embodiment of the present invention;

[0044] Figure 2 is a schematic diagram of a process for establishing an association mapping relationship according to an embodiment of the present invention;

[0045] Figure 3 is a schematic diagram of a specific process of performing association mapping according to an embodiment of the present invention;

[0046] Figure 4 is a schematic diagram of the structure of node 2 according to an embodiment of the present invention;

[0047] Figure 5 is a schematic diagram of main modules of a data storage and computing device according to an embodiment of the present invention;

[0048] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0049] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0051] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0052] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.

[0053] For a distributed system, a separate distributed storage engine and distributed computing engine may be set up, where the distributed storage engine is used to store data, and the data is distributed in each node of the distributed storage engine; the distributed computing engine is used to execute computing tasks. When a node in the distributed computing engine executes a computing task, it first needs to obtain the data involved in the calculation. Since the distributed storage engine and the distributed computing engine are independent of each other, the stored data is distributed in each node of the distributed storage engine. Therefore, the data for parameter calculation may be obtained from different nodes of the distributed storage engine; after the computing task is executed, the newly added data to be stored also needs to be distributed to each node of the distributed storage engine, which leads to a large amount of network input and output data transmission, increases the network input and output load (network IO load), and obtains data from different nodes of the distributed storage engine, which also slows down the execution speed of the computing task.

[0054] Figure 1 It is a schematic diagram of the main steps of a data storage and calculation method according to an embodiment of the present invention.

[0055] like Figure 1 As shown, the data storage and calculation method of the embodiment of the present invention mainly includes the following steps S101 to S104:

[0056] Step S101, using a data storage and computing integrated engine to receive a computing task and determine a unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including a computing partition and a memory partition, and there is an associated mapping relationship between the computing partition and the memory partition;

[0057] Step S102, determining the target data object based on the unique business identifier, and determining the target memory partition of the target data object from the data storage and computing integrated engine;

[0058] Step S103, based on the association mapping relationship between the computing partition and the memory partition, determining a target computing partition that has an association mapping relationship with the target memory partition;

[0059] Step S104, obtaining the data involved in the calculation from the target memory partition and sending it to the target calculation partition, so that the target calculation partition performs the calculation task.

[0060] Pre-build a data storage and computing engine. The above-mentioned data storage and computing engine is a distributed engine, and each of its distributed nodes has several computing partitions and several memory partitions. There is an associated mapping relationship between the computing partitions and memory partitions in each distributed node, so that when each computing partition executes a computing task, it can directly obtain the data involved in the calculation from the local memory partition that has an associated mapping relationship with it, avoiding cross-node data acquisition.

[0061] The distributed nodes of the data storage and computing engine receive computing tasks. In order to obtain the data involved in the computing, the relevant business requirements can be determined according to the computing tasks, and then the unique business identifier of the data involved in the computing can be determined. Among them, the unique business identifier (unique business ID) is used to distinguish data objects. Different types of data to be stored are assigned different unique business identifiers. There is a connection between the data to be stored marked with the same unique business identifier. All data to be stored are encapsulated into different data objects based on the unique business identifier.

[0062] Therefore, after determining the unique business identifier, the target data object can be determined, where the target data object includes the data involved in the calculation. Since different data objects are distributed in different memory partitions, after determining the target data object, the target memory partition storing the target data object can be determined.

[0063] According to the association mapping relationship between the computing partition and the memory partition, the target computing partition with the association mapping relationship with the target memory partition can be determined, and the target computing partition is used to perform the above computing tasks. When it performs the computing task, it can directly obtain the data involved in the calculation from the local target memory partition, thereby avoiding cross-node data transmission, and reducing the network IO load of the distributed nodes where the target memory partition and the target computing partition are located.

[0064] In an optional embodiment, if Figure 2 As shown, establishing the association mapping relationship between the computing partition and the memory partition includes the following steps S201 to S202:

[0065] Step S201, embedding the driver of the storage engine into the driver of the computing engine; wherein the storage engine and the computing engine are both distributed engines;

[0066] Step S202, associate and map the memory partitions and computing partitions in each node to obtain an association mapping relationship between the memory partitions and the computing partitions.

[0067] By embedding the storage engine driver into the computing engine driver, the storage engine can be started at the same time as the computing engine. The startup processes of the two can be used as one startup process, achieving the effect of combining the independent storage engine and computing engine into a data storage and computing integrated engine.

[0068] Each node of the data storage and computing integrated engine can include a computing unit and a memory unit. The computing unit includes several computing partitions, and the memory unit includes several memory partitions, and an associated mapping relationship between the memory partitions and the computing partitions is established.

[0069] After the program is successfully embedded and the associated mapping relationship is established, the data storage and computing engine is configured. After the data storage and computing engine is started, when the distributed node accepts the computing task, it can obtain the data involved in the calculation from the memory partition with which it has an associated mapping relationship through the computing partition in the node to execute the computing task.

[0070] In an optional embodiment, if Figure 3 As shown, the above-mentioned associating and mapping the memory partition and the computing partition in each node includes the following steps S301 to S303:

[0071] Step S301, encapsulating the data to be stored into different data objects based on the unique business identifier;

[0072] Step S302, allocating the above data objects to each node;

[0073] Step S303: for each node, write the above different data objects into each memory partition, and allocate each memory partition to each computing partition, so that each computing partition is associated and mapped with the corresponding memory partition.

[0074] The data to be stored is encapsulated into different data objects according to the unique business ID, and each data object contains all the data to be stored with the same unique business ID. All data objects are distributed to each node so that each node can store certain data locally, making it easier to obtain data involved in calculations locally and reduce data transmission between distributed nodes.

[0075] In each node, the data objects are divided into memory partitions to distribute the data objects in the node to each memory partition, so that the memory partitions are associated and mapped with the computing partitions according to the balance strategy. Among them, the balance strategy refers to the partition allocation strategy, that is, the strategy of allocating data objects to each memory partition according to the preset allocation logic so that the memory partitions are associated and mapped with the computing partitions. The balance strategy can adopt a range allocation strategy (range) or a polling scheduling strategy (roundRobin), and can also adopt an average allocation strategy, a computing power allocation strategy, etc., but it is not limited to this and can be selected according to actual conditions.

[0076] In an optional embodiment, allocating each memory partition to each computing partition includes:

[0077] Allocate the above memory partitions evenly to each of the above computing partitions.

[0078] Specifically, the computing power of each computing partition and the amount of data in each memory partition can be ignored, and each memory partition can be evenly allocated to each computing partition according to the number of memory partitions and computing partitions. As an example, if there are 3 computing partitions and 6 memory partitions in a node, the 6 memory partitions can be evenly allocated to each computing partition, so that each computing partition is associated with 2 memory partitions. The above process is to associate and map memory partitions with computing partitions according to the average allocation strategy.

[0079] In an optional embodiment, allocating each memory partition to each computing partition includes:

[0080] Based on the computing power of the computing partitions, each of the memory partitions is allocated to each of the computing partitions.

[0081] Specifically, since different computing partitions can have different computing powers, each memory partition can be allocated to each computing partition according to the size of the computing power of the computing partition. As an example, there are 3 computing partitions and 6 memory partitions in a node, among which the computing power of 1 computing partition CP1, computing partition CP2 and computing partition CP3 is: CP1>CP2>CP3. The computing power of computing partition CP1 is greater than that of computing partition CP2 and computing partition CP3, and can carry more computing tasks or computing tasks with a larger amount of computing. Therefore, 3 memory partitions can be allocated to computing partition CP1, 2 memory partitions can be allocated to computing partition CP2, and 1 memory partition can be allocated to computing partition CP3. The above process is to associate memory partitions with computing partitions according to the computing power allocation strategy.

[0082] In an optional embodiment, embedding the storage engine driver into the computing engine driver includes:

[0083] The code of the storage engine driver is written into the code of the computing engine driver.

[0084] In order to merge the storage engine driver and the computing engine driver into one process, the storage engine driver can be embedded in the computing engine driver so that the two can be started and run together to form a data storage and computing integrated engine. Specifically, the storage engine driver code can be directly written into the computing engine driver code so that the storage engine is started when the computing engine is started.

[0085] In an optional embodiment, embedding the storage engine driver into the computing engine driver includes:

[0086] Based on the driver program of the storage engine, compile a storage engine startup script; load the storage engine startup script into the driver program of the computing engine.

[0087] Specifically, by compiling the storage engine startup script and loading it into the driver program of the computing engine, when the computing engine is started, the storage engine is started through the above storage engine startup script, so that the purpose of starting and running the two together is achieved, so as to obtain a data storage and computing integrated engine.

[0088] In an optional embodiment, the above method further includes:

[0089] The data generated in the process of executing the above computing task or the data generated by the data production end is used as the new data, and the unique business identifier of the new data is obtained;

[0090] In response to the unique business identifier of the newly added data being an existing unique business identifier, storing the newly added data in the memory partition where the data object having the same unique business identifier is located;

[0091] In response to the unique business identifier of the newly added data being a newly added unique business identifier, the newly added data is encapsulated into a data object based on the unique business identifier and written into the memory partition.

[0092] The computing partition may generate data when executing computing tasks. The data production end may also generate data according to the user's business needs. The above two types of data are regarded as new data. The unique business identifier of the new data may be an existing unique business identifier or a new unique business identifier.

[0093] When the unique business identifier of the newly added data is an existing unique business identifier, obtain a data object with the same unique business identifier as the newly added data, and encapsulate the newly added data into the above data object so that the data with the same unique business identifier is stored in the same memory partition to facilitate subsequent data calls.

[0094] When the unique business identifier of the newly added data is a newly added unique business identifier, it indicates that there is no data object identical to the unique business identifier of the newly added data in each node of the data storage and computing integrated engine. At this time, the newly added data is encapsulated into a data object as the data to be stored and written into the memory partition.

[0095] In the application system configured with the data storage and computing engine, the application system data service can also be configured. The data production end can be the service provided by the application system data service to the user. The application system data service is connected to the memory of each node of the data storage and computing engine, and the application system data service interacts with the data storage and computing engine to manage, retrieve, store, and update the data of the local memory partition of each node, so that the application system configured with the data storage and computing engine has distributed memory caching capabilities.

[0096] The data storage and calculation method is described in detail below through a specific embodiment:

[0097] The driver of the storage engine Ignite is embedded in the driver of the computing engine Flink, so that Ignite is started at the same time when Flink is started, thereby using the storage engine Ignite and the computing engine Flink to generate a data storage and computing integrated engine.

[0098] When the data storage and computing engine is used for the storage and computing of financial asset data, the financial asset data includes but is not limited to asset data, transaction data, market data, and other related data. The financial asset data is encapsulated into different data objects according to the unique business ID of the data to distribute the data objects to different nodes. In each node, different data objects are written to each memory partition. The data objects stored in the memory partition are managed by the application system data service. At the same time, users can also use the services provided by the application system data service (data production end) to generate new financial asset data. Among them, the application system data service mainly manages the structure definition, associated mapping relationship and metadata of the data object.

[0099] After writing different data objects into Ignite's memory partitions, the Ignite memory partitions in each node are evenly distributed to Flink's computing partitions, and the associated mapping relationship between computing partitions and memory partitions is constructed. Figure 4As shown, there are memory and computing parts in node 2, where the memory part includes 6 memory partitions DP8, DP9, DP10, DP11, DP12 and DP13, and the computing part includes 3 partitions CP4, CP5 and CP6. The memory partitions are evenly distributed to the computing partitions, so that CP4 has an associated mapping relationship with DP8 and DP9, CP5 has an associated mapping relationship with DP10 and DP11, and CP6 has an associated mapping relationship with DP12 and DP13. The application system data service is connected to the memory part. At this point, the data storage and computing integration engine for financial asset data is generated, and the application system data service can directly manage, access and call the data in the local memory partition of each node through interaction with the data storage and computing integration engine.

[0100] When a node receives a computing task, it can be determined that the unique business ID of the data involved in the computing is abc according to the computing task. The target memory partition DP8 storing the unique business ID abc is determined, and the target computing partition CP4 for executing the computing task is determined according to the associated mapping relationship.

[0101] When the target computing partition CP4 executes a computing task, it can directly obtain the financial asset data involved in the calculation from the local target memory partition DP8, and then call the corresponding financial asset indicator algorithm for calculation.

[0102] Regardless of whether users can use the application system data service to generate new financial asset data or whether new financial asset data is generated during the calculation process, it can be stored in the memory partition according to its unique business ID.

[0103] The above-mentioned data storage and computing integrated engine, the architecture with separation of distributed computing engine Spark and storage engine Ignite, and the batch processing architecture are respectively used in the financial asset data system to perform data calculations under the same data volume of 600,000, medium indicator algorithm complexity, and computing resources of 20 cores. The calculation time results shown in the following table can be obtained.

[0104]

[0105] It can be found that the time consumed by the data storage and computing engine of the embodiment of the present invention is less than that of other architectures, both in terms of data organization time and computing time. When executing computing tasks through the data storage and computing engine, the data involved in the calculation can be directly obtained from the target memory partition that has an associated mapping relationship with the target computing partition locally, so that the execution of the computing task and the acquisition of the data involved in the calculation are both performed locally. By quickly acquiring the data involved in the calculation, the local memory read and write capabilities are greatly improved, and the data organization time and calculation time are effectively shortened.

[0106] The data storage and computing integrated method of the present invention can determine the target data object of the data involved in the calculation through a unique business identifier after receiving a calculation task using a pre-configured data storage and computing integrated engine, and determine the target calculation partition corresponding to the target memory partition storing the target data object according to the associated mapping relationship between the calculation partition and the memory partition in the above-mentioned data storage and computing integrated engine, so that the target calculation partition can directly obtain the data involved in the calculation from the local target memory partition that has an associated mapping relationship with it, avoiding the need to obtain the data involved in the calculation from other nodes of the distributed engine when processing the calculation task, thereby reducing the transmission of network input and output data, improving the local memory data reading and writing capabilities, and further improving the calculation speed.

[0107] Figure 5 It is a schematic diagram of main modules of a data storage and computing device according to an embodiment of the present invention.

[0108] like Figure 5 As shown, the data storage and computing device 500 of the embodiment of the present invention includes:

[0109] A receiving module 501 is used to receive a computing task using a data storage and computing integrated engine, and determine a unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including a computing partition and a memory partition, and there is an associated mapping relationship between the computing partition and the memory partition;

[0110] A first determination module 502 is used to determine the target data object based on the unique business identifier, and determine the target memory partition of the target data object from the data storage and computing integrated engine;

[0111] A second determination module 503 is used to determine a target computing partition that has an associated mapping relationship with the target memory partition based on the associated mapping relationship between the computing partition and the memory partition;

[0112] The execution module 504 is used to obtain the data involved in the calculation from the target memory partition and send it to the target calculation partition, so that the target calculation partition executes the calculation task.

[0113] In an optional embodiment of the present invention, the above-mentioned device 500 also includes a relationship establishment module, which is used to embed the driver of the storage engine into the driver of the computing engine; wherein the above-mentioned storage engine and the above-mentioned computing engine both belong to distributed engines; the memory partitions in each node are associated with the computing partitions to obtain the associated mapping relationship between the memory partitions and the computing partitions.

[0114] In an optional embodiment of the present invention, the above-mentioned relationship establishment module is further used to: encapsulate the data to be stored into different data objects based on the unique business identifier; distribute the above-mentioned data objects to each node based on the balancing strategy; for each node, write the above-mentioned different data objects into each memory partition, and allocate each memory partition to each computing partition, so that each computing partition and the corresponding memory partition are associated and mapped.

[0115] In an optional embodiment of the present invention, the relationship establishment module is further used to: evenly distribute each of the memory partitions to each of the computing partitions.

[0116] In an optional embodiment of the present invention, the above-mentioned relationship establishment module is further used to: allocate each of the above-mentioned memory partitions to each of the above-mentioned computing partitions based on the computing power of the above-mentioned computing partitions.

[0117] In an optional embodiment of the present invention, the relationship establishment module is further used to: write the code of the driver of the storage engine into the code of the driver of the computing engine.

[0118] In an optional embodiment of the present invention, the above-mentioned relationship establishment module is further used to: compile a storage engine startup script based on the driver program of the above-mentioned storage engine; and load the above-mentioned storage engine startup script into the driver program of the above-mentioned computing engine.

[0119] In an optional embodiment of the present invention, the above-mentioned device 500 also includes a new data storage module, which is used to take the data generated in the process of executing the above-mentioned computing task or the data generated by the data production end as the new data, and obtain the unique business identifier of the above-mentioned new data; in response to the unique business identifier of the above-mentioned new data being an existing unique business identifier, the above-mentioned new data is stored in the memory partition where the data object with the same unique business identifier is located; in response to the unique business identifier of the above-mentioned new data being a newly added unique business identifier, the above-mentioned new data is encapsulated into a data object based on the unique business identifier and written into the memory partition.

[0120] The data storage and computing device of an embodiment of the present invention can determine the target data object of the data involved in the calculation through a unique business identifier after receiving a calculation task using a pre-configured data storage and computing integrated engine, and determine the target calculation partition corresponding to the target memory partition storing the target data object according to the associated mapping relationship between the calculation partition and the memory partition in the above-mentioned data storage and computing integrated engine, so that the target calculation partition can directly obtain the data involved in the calculation from the local target memory partition with which there is an associated mapping relationship, avoiding the need to obtain the data involved in the calculation from other nodes of the distributed engine when processing the calculation task, thereby reducing the transmission of network input and output data, improving the local memory data reading and writing capabilities, and further improving the calculation speed.

[0121] Figure 6 An exemplary system architecture 600 is shown to which the data storage and computing method or data storage and computing device according to the embodiment of the present invention can be applied.

[0122] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and distributed server nodes 605, 606, 607. Network 604 is used to provide a medium for communication links between distributed server nodes 601, 602, 603 and distributed server nodes 605, 606, 607. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0123] Users can use terminal devices 601, 602, 603 to interact with distributed server nodes 605, 606, 607 through network 604 to receive or send data, etc. Various communication client applications can be installed on terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0124] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0125] The distributed server nodes 605, 606, and 607 may be servers that provide various services, such as a background management server that provides computing services for computing tasks sent by users through terminal devices 601, 602, and 603. The background management server may use a data storage and computing engine to perform computing and other processing on the acquired computing tasks, and feed back the processing results (such as the calculated data) to the terminal device.

[0126] It should be noted that the data storage and computing method provided in the embodiment of the present invention is generally executed by the distributed server nodes 605 , 606 , and 607 , and accordingly, the data storage and computing device is generally arranged in the distributed server nodes 605 , 606 , and 607 .

[0127] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0128] Reference below Figure 7 , which shows a schematic diagram of the structure of a server computer system 700 suitable for implementing an embodiment of the present invention. Figure 7The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0129] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0130] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0131] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0132] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor, for example, may be described as: a processor including a receiving module, a first determination module, a second determination module and an execution module. Among them, the names of these modules do not constitute a limitation on the modules themselves under certain circumstances, for example, the receiving module may also be described as "a module that uses a data storage and computing integrated engine to receive computing tasks and determine the unique business identifier of the data involved in the calculation".

[0135] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: using a data storage and computing engine to receive computing tasks and determine the unique business identifier of the data involved in the calculation; wherein the data storage and computing engine is an engine including computing partitions and memory partitions, and there is an associated mapping relationship between the computing partitions and the memory partitions; determining the target data object based on the unique business identifier, and determining the target memory partition of the target data object from the data storage and computing engine; based on the associated mapping relationship between the computing partition and the memory partition, determining the target computing partition that has an associated mapping relationship with the target memory partition; obtaining the data involved in the calculation from the target memory partition and sending it to the target computing partition, so that the target computing partition performs the computing task.

[0136] According to the technical solution of an embodiment of the present invention, after receiving a computing task using a pre-configured data storage and computing integrated engine, the target data object of the data participating in the calculation can be determined through a unique business identifier, and the target computing partition corresponding to the target memory partition storing the target data object can be determined according to the associated mapping relationship between the computing partition and the memory partition in the above-mentioned data storage and computing integrated engine, so that the target computing partition can directly obtain the data participating in the calculation from the local target memory partition with which there is an associated mapping relationship, avoiding the need to obtain the data participating in the calculation from other nodes of the distributed engine when processing the computing task, thereby reducing the transmission of network input and output data, improving the local memory data reading and writing capabilities, and further improving the calculation speed.

[0137] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data storage and calculation method, characterized in that: include: A data storage and computing integrated engine is used to receive a computing task and determine a unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including a computing partition and a memory partition, and there is an associated mapping relationship between the computing partition and the memory partition; Determine the target data object based on the unique business identifier, and determine the target memory partition of the target data object from the data storage and computing integrated engine; Based on the association mapping relationship between the computing partition and the memory partition, determining a target computing partition that has an association mapping relationship with the target memory partition; The data involved in the calculation is obtained from the target memory partition and sent to the target calculation partition, so that the target calculation partition executes the calculation task.

2. The data storage and calculation method according to claim 1, characterized in that: Establishing an association mapping relationship between the computing partition and the memory partition includes: Embed a driver of a storage engine into a driver of a computing engine; wherein both the storage engine and the computing engine are distributed engines; The memory partitions in each node are associated and mapped with the computing partitions to obtain an associated mapping relationship between the memory partitions and the computing partitions.

3. The data storage and calculation method according to claim 2, characterized in that: The associating and mapping the memory partition and the computing partition in each node includes: Encapsulate the data to be stored into different data objects based on the unique business identifier; Allocate data objects to each node; For each node, the different data objects are written into each memory partition, and each memory partition is allocated to each computing partition, so that each computing partition is associated and mapped with the corresponding memory partition.

4. The data storage and calculation method according to claim 3, characterized in that: The allocating each memory partition to each computing partition includes: Allocate each of the memory partitions evenly to each of the computing partitions; or, Based on the computing power of the computing partitions, each of the memory partitions is allocated to each of the computing partitions.

5. The data storage and calculation method according to claim 2, characterized in that: The step of embedding the storage engine driver into the computing engine driver includes: The code of the driver program of the storage engine is written into the code of the driver program of the computing engine.

6. The data storage and calculation method according to claim 2, characterized in that: The step of embedding the storage engine driver into the computing engine driver includes: Based on the driver program of the storage engine, compile a storage engine startup script; and load the storage engine startup script into the driver program of the computing engine.

7. The data storage and calculation method according to claim 2, characterized in that: The method further comprises: Using data generated in the process of executing the computing task or data generated by the data production end as new data, and obtaining a unique business identifier of the new data; In response to the unique business identifier of the newly added data being an existing unique business identifier, storing the newly added data in the memory partition where the data object having the same unique business identifier is located; In response to the unique business identifier of the newly added data being a newly added unique business identifier, the newly added data is encapsulated into a data object based on the unique business identifier and written into the memory partition.

8. A data storage and computing device, characterized in that: include: A receiving module, used to receive a computing task using a data storage and computing integrated engine, and determine a unique business identifier of the data involved in the computing; wherein the data storage and computing integrated engine is an engine including a computing partition and a memory partition, and there is an associated mapping relationship between the computing partition and the memory partition; A first determination module, configured to determine a target data object based on the unique business identifier, and determine a target memory partition of the target data object from the data storage and computing integrated engine; A second determination module is used to determine a target computing partition that has an associated mapping relationship with the target memory partition based on the associated mapping relationship between the computing partition and the memory partition; An execution module is used to obtain the data involved in the calculation from the target memory partition and send it to the target calculation partition, so that the target calculation partition executes the calculation task.

9. An electronic device for data storage and calculation, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.