Data processing method and device, electronic equipment and storage medium
Through data template batch import and queue storage technology, the problem of low efficiency when importing historical data through the system interface is solved, fast response and efficient data import are achieved, and the waste of system resources is avoided.
Patent Information
- Application Number
- CN202410873091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, when historical data is imported through the system interface, the execution efficiency is low, and it takes a long time to import a large amount of data, resulting in a waste of system resources.
Import historical data collections in batches through data templates, determine the data type, extract data elements associated with active objects, assemble the target data collection, and store it in a preset data queue to reduce data import time and avoid system resource occupation.
It improves the efficiency of data import, reduces import time, avoids waste of system resources, and achieves fast response and efficient data processing.
Smart Images

Figure CN118779371A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art
[0002] In the process of operating system construction, the import of historical data is usually related to data migration, system upgrades, database mergers, or the initialization of new systems. With the development of business and the advancement of technology, the operating system needs to transfer historical data to the new system to ensure the continuity and availability of information and improve the system's data analysis and mining capabilities. In related technologies, an interface import tool is usually set up in the operating system to import historical data by connecting to the interface of the old system. However, this method has low execution efficiency and takes a long time to import large amounts of data, resulting in a waste of system resources. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a data processing method, device, electronic device and storage medium, which can solve the problem of importing historical data through system interface docking, but the execution efficiency is low, and it takes a long time to import a large amount of data, resulting in a waste of system resources.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for data processing is provided.
[0005] A data processing method according to an embodiment of the present invention includes: in response to a data import instruction, obtaining a corresponding data template to batch import a historical data set based on the data template;
[0006] Acquire the data type of each data in the historical data set to determine the data set corresponding to each data type;
[0007] In response to a creation instruction of an active object, obtaining data import logic of the active object, extracting data elements associated with the active object based on the data import logic to determine a target data set associated with each data element;
[0008] Each of the target data sets is assembled according to the data import logic to obtain the data object of the active object, and the data object is stored in a preset data queue.
[0009] In one embodiment, extracting each data element associated with the activity object based on the data import logic and determining a target data set associated with each data element includes:
[0010] Identify the data elements that match each of the data types in the data import logic, establish an association relationship between the data elements and the data types, and determine a target data set associated with each of the data elements.
[0011] In yet another embodiment, assembling each of the target data sets according to the data import logic to obtain the data object of the active object includes:
[0012] Based on the combination and arrangement of each data element in the data import logic, the target data sets of each data element are combined based on the combination method to obtain a combined data set, and the combined data sets are arranged based on the arrangement method to obtain the data object of the active object.
[0013] In yet another embodiment, obtaining the data type of each data in the historical data set includes:
[0014] The data description of each historical data is extracted based on the data template, and the keywords associated with the activity basic data in each data description are identified to determine the data type of each historical data based on the keywords.
[0015] In yet another embodiment, determining the data set corresponding to each data type includes:
[0016] Calling a preset clustering model to cluster the historical data set based on the data type to obtain an initial data set corresponding to each data type;
[0017] The sorting rules of each of the data types are called to sort the data in the initial data set to determine the data set corresponding to each data type.
[0018] In yet another embodiment, after storing the data object in a preset data queue, the method further includes:
[0019] In response to the data object belonging to the first structure data, the data object is stored in a preset database; in response to the data object belonging to the second structure data, an index file of the data object is established, a storage location is determined, and the data object is stored in the storage location.
[0020] To achieve the above objective, according to another aspect of an embodiment of the present invention, a data processing device is provided.
[0021] A data processing device according to an embodiment of the present invention includes: an import unit, configured to obtain a corresponding data template in response to a data import instruction, so as to import a historical data set based on the data template;
[0022] A determination unit, used to obtain a data type of each data in the historical data set to determine a data set corresponding to each data type;
[0023] The determining unit is further configured to obtain data import logic of the active object in response to a creation instruction of the active object, and extract each data element associated with the active object based on the data import logic to determine a target data set associated with each data element;
[0024] The storage unit is used to assemble each of the target data sets according to the data import logic to obtain the data object of the active object, and store the data object in a preset data queue.
[0025] In one embodiment, the determining unit is specifically configured to:
[0026] Identify the data elements that match each of the data types in the data import logic, establish an association relationship between the data elements and the data types, and determine a target data set associated with each of the data elements.
[0027] In one embodiment, the determining unit is specifically configured to:
[0028] Based on the combination and arrangement of each data element in the data import logic, the target data sets of each data element are combined based on the combination method to obtain a combined data set, and the combined data sets are arranged based on the arrangement method to obtain the data object of the active object.
[0029] In one embodiment, the determining unit is specifically configured to:
[0030] The data description of each historical data is extracted based on the data template, and the keywords associated with the activity basic data in each data description are identified to determine the data type of each historical data based on the keywords.
[0031] In one embodiment, the determining unit is specifically configured to:
[0032] Calling a preset clustering model to cluster the historical data set based on the data type to obtain an initial data set corresponding to each data type;
[0033] The sorting rules of each of the data types are called to sort the data in the initial data set to determine the data set corresponding to each data type.
[0034] In one embodiment, the storage unit is further used for:
[0035] In response to the data object belonging to the first structure data, the data object is stored in a preset database; in response to the data object belonging to the second structure data, an index file of the data object is established, a storage location is determined, and the data object is stored in the storage location.
[0036] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0037] An electronic device according to an embodiment of the present invention includes: 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 data processing method provided by the 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 medium is provided.
[0039] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the data processing method provided by the embodiment of the present invention is implemented.
[0040] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.
[0041] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the data processing method provided by the embodiment of the present invention is implemented.
[0042] One embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, in response to the data import instruction, historical data sets can be imported in batches based on the data template; the data type of each historical data can be obtained to determine the data set corresponding to each data type; for the creation instruction of the active object, the data import logic of the active object can be obtained, and each data element in the data import logic can be extracted to determine the target data set associated with each data element; each target data set is assembled according to the data import logic to obtain the data object of the active object, and the data object is stored in a preset data queue. In the embodiment of the present invention, batch import of historical data is realized through data templates, and the imported historical data can be divided according to the data type, so that each data set can be imported when the active object is created to generate a data object. In this way, in the embodiment of the present invention, through batch import and queue storage, the data import instruction can be responded to in time and the data import can be completed, reducing the time consumption of data import, avoiding occupying too many system resources, and improving the efficiency of data import.
[0043] 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
[0044] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0045] Figure 1 is a schematic diagram of a main flow of a data processing method according to an embodiment of the present invention;
[0046] Figure 2 is a schematic diagram of another main flow of a data processing method according to an embodiment of the present invention;
[0047] Figure 3 is a schematic diagram of another main flow of a data processing method according to an embodiment of the present invention;
[0048] Figure 4 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present invention;
[0049] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0050] Figure 6 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION
[0051] 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.
[0052] It should be pointed out that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0053] An embodiment of the present invention provides a data processing system, which can be used in a scenario where historical data is imported, and specifically can be used in a scenario where historical data is imported into an exhibition hall operation activity system.
[0054] The embodiment of the present invention provides a data processing method, which can be executed by a data processing system. Figure 1 As shown, the method includes:
[0055] S101: In response to a data import instruction, a corresponding data template is obtained to batch import a historical data set based on the data template.
[0056] The data import instruction may be automatically triggered by the system or sent by other systems. For example, a data import instruction may be sent to a data processing system when data import is required. In order to speed up the efficiency of data import in the embodiment of the present invention, a data template for data import may be pre-set, and each historical data may be stored based on the data template, and then batch import of historical data may be realized through the data template. The historical data imported in batches may derive a historical data set.
[0057] Specifically, in the embodiment of the present invention, historical data is sorted through a data template, which is predefined and the specific format can be set according to the requirements. Taking the application scenario of exhibition hall activity operation as an example, a data template can be customized based on the business characteristics of exhibition hall activity operation, which can not only sort and collect historical data, but also ensure the integrity of imported historical data. For example, the data template can include the data type or data description of each historical data to indicate the specific meaning of the data.
[0058] It should be noted that the data processing system may pre-set a batch data import function so as to support batch uploading and importing of data, thereby realizing the batch import function in this step.
[0059] S102: Acquire the data type of each data in the historical data set to determine the data set corresponding to each data type.
[0060] The historical data set is imported through a data template, so the data type of each data can be obtained according to the data template of the historical data, and then the data in the historical data set can be divided according to the data type to obtain the data set corresponding to each data type.
[0061] Specifically, in the embodiment of the present invention, the data template may include data description, and the data representation may include information such as the function and usage scenario of each data, so the data type of the historical data may be determined by the data description in this step. Taking the historical data as the activity basic data as an example, the data type may be determined by: extracting the data description of each historical data based on the data template, identifying the keywords associated with the activity basic data in each data description, and determining the data type of each historical data based on the keywords.
[0062] Activity basic data is usually the basic data required for exhibition hall activities, and can be divided into different types according to different functions. For example, the data types of activity basic data can include exhibition halls, booths, exhibits, display content, participants, and explainers, that is, they are divided into different data types according to different functions of the data. Each data type can be set with corresponding keywords, so in this step, the keywords associated with the activity basic data in the data description can be identified, and then the data type of each historical data can be determined.
[0063] It should be noted that, in the embodiment of the present invention, in order to facilitate data classification, a data type label may be set for each historical data in the data template, so the data type of each historical data may also be obtained from the data template in this step.
[0064] For historical data of different data types, when applied to exhibition hall activities, they are usually displayed according to certain rules. History can be displayed according to the time when the data was generated, the organization to which the data belongs, etc. Therefore, for each data type, the embodiment of the present invention can set the sorting rules corresponding to each data type to facilitate the sorting of historical data, thereby facilitating the use of data in subsequent activities. Therefore, the data set corresponding to each data type in this step can be determined as follows: calling a preset clustering model, clustering the historical data set based on the data type, and obtaining the initial data set corresponding to each data type; calling the sorting rules of each data type to sort the data in the initial data set to determine the data set corresponding to each data type.
[0065] The clustering model can be pre-set, and the data of the same data type are aggregated through the clustering model to form an initial data set of each data type, and then the data in the initial data set are sorted according to the sorting rules corresponding to each data type. In this step, the data in the initial data set is sorted, which can ensure the orderliness of the data in the data set corresponding to each data type, and can also improve the orderliness of the data when it is applied.
[0066] It should be noted that in the embodiment of the present invention, before the data type is determined in the historical data set, a comprehensive data verification can be performed first, including verification within the document and verification with the existing data in the system, in order to improve the accuracy of the data. If the data verification is successful, this step can be executed; if the data verification fails, the verification failure information can be fully fed back, thereby avoiding repeated modification of the input information and repeated execution of the import operation, thereby improving the usability of the system. After determining the initial data set corresponding to each data type in this step, operations such as merging and deduplication can be performed on the initial data set first, so as to reduce the amount of data in each initial data set, thereby improving the reuse of the basic data.
[0067] S103: In response to a creation instruction of an active object, obtain data import logic of the active object, and extract data elements associated with the active object based on the data import logic to determine a target data set associated with each data element.
[0068] The creation instruction of the activity object indicates the creation of the activity object of the exhibition hall activity. The activity object indicates the data object corresponding to the exhibition hall activity. The creation instruction may include activity information, such as activity identification, etc., to indicate that the activity object needs to be created. The data import logic may be pre-configured, indicating the logical relationship of data import. In this step, the data elements associated with the activity object may be extracted. The data elements may be associated with the data type, so the target data set, i.e., the data set required by the activity object, may be determined from the determined data set.
[0069] Specifically, this step can be specifically performed as follows: identifying the data elements that match each data type in the data import logic, establishing an association relationship between the data elements and the data types, and determining the target data set associated with each data element.
[0070] In this step, the data import logic can be identified to determine the parameters that match the data type, namely the data elements. For example, the data elements can be exhibition halls, booths, exhibits, display content, participants, explainers, etc. In this way, an association relationship between the data and the data type can be established, and the target data set associated with each element can be determined through this association relationship, that is, the target data set corresponding to the activity object.
[0071] S104: Assemble each target data set according to the data import logic to obtain the data object of the active object, and store the data object into a preset data queue.
[0072] After each target data set is determined, it can be assembled according to the data import logic to obtain the data object of the active object, and then the data object is stored in a preset data queue.
[0073] Specifically, the method of deriving the data object of the active object in this step can be based on the combination method and arrangement method of each data element in the data import logic, so as to combine the target data sets of each data element based on the combination method to obtain a combined data set, and arrange each combined data set based on the arrangement method to obtain the data object of the active object.
[0074] The combination method represents the combination of one or more data elements, and the arrangement method represents the arrangement method of data elements and / or combined data elements. Therefore, in this step, the combined data set can be obtained according to the combination method first, and then each combined data set can be arranged according to the arrangement method to obtain the data object of the active object.
[0075] It should be noted that in the embodiment of the present invention, after the data object is written into the data queue, the import operation is terminated, thereby releasing system resources to avoid import request timeout. The data queue can be a custom blocking queue. When a new data object is stored in the data queue, the data write operation can be awakened to write the data object into the data queue. When there is no data object written, the resources are released and the system goes into sleep, which can effectively improve the data processing efficiency.
[0076] In one implementation, for data objects in a data queue, the data objects can be transferred from the data queue to a database, etc. Specifically, when the data in the data object is first structure data, such as structured data, it can be directly stored in the database, and for unstructured data, that is, the data in the data object is second structure data, it is necessary to establish an index file of the data object, determine the storage location, and store the data object in the storage location, thereby ensuring that the unstructured data file is reasonably stored so that it can be efficiently read. In the embodiment of the present invention, the implementation method of establishing an index file of the data object and determining the storage location may not be limited.
[0077] It should be noted that, in the embodiment of the present invention, based on the business characteristics of the exhibition hall activities, the data verification and data cleaning tools can be customized to ensure the validity of the data. For a large amount of historical data, in the embodiment of the present invention, the asynchronous data queue can be customized to write data, so that the import request can be responded to in time, the request timeout can be avoided, and the system resources can be released in time, so as to improve the data processing efficiency and reduce the service load.
[0078] In an embodiment of the present invention, in response to a data import instruction, a historical data set can be imported in batches based on a data template; the data type of each historical data is obtained to determine the data set corresponding to each data type; for the creation instruction of an active object, the data import logic of the active object can be obtained, and each data element in the data import logic can be extracted to determine the target data set associated with each data element; each target data set is assembled according to the data import logic to obtain the data object of the active object, and the data object is stored in a preset data queue. In this way, in an embodiment of the present invention, batch import of historical data is realized through a data template, and the imported historical data can be divided according to the data type, so that each data set can be imported when the active object is created to generate a data object. In an embodiment of the present invention, through batch import and queue storage, the data import instruction can be responded to in a timely manner and the data import can be completed, which reduces the time consumption of data import, avoids occupying too many system resources, and improves the efficiency of data import.
[0079] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for data processing in the embodiment of the present invention. Figure 2 As shown, the method includes:
[0080] S201: In response to a data import instruction, obtain a corresponding data template to batch import a historical data set based on the data template.
[0081] S202: Obtain the data type of each data in the historical data set, call a preset clustering model, cluster the historical data set based on the data type, and obtain an initial data set corresponding to each data type.
[0082] S203: Calling the sorting rules of each data type to sort the data in the initial data set to determine the data set corresponding to each data type.
[0083] S204: In response to a creation instruction of the active object, obtain the data import logic of the active object, and extract each data element associated with the active object based on the data import logic to determine a target data set associated with each data element.
[0084] S205: Assemble each target data set according to the data import logic to obtain the data object of the active object, and store the data object into a preset data queue.
[0085] S206: In response to the data object belonging to the first structure data, the data object is stored in a preset database; in response to the data object belonging to the second structure data, an index file of the data object is established, a storage location is determined, and the data object is stored in the storage location.
[0086] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The data processing principles in the illustrated embodiments are the same and will not be described in detail here.
[0087] In an embodiment of the present invention, batch import of historical data is achieved through data templates, and the imported historical data can be divided according to data types so that each data set can be imported to generate a data object when an active object is created. In this way, in an embodiment of the present invention, batch import and queue storage can be used to respond to data import instructions and complete data import in a timely manner, thereby reducing the time consumption of data import, avoiding occupying too many system resources, and improving the efficiency of data import.
[0088] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for data processing in the embodiment of the present invention. Figure 3 As shown, the method includes:
[0089] S301: In response to a data import instruction, obtain a corresponding data template to batch import a historical data set based on the data template.
[0090] S302: Acquire the data type of each data in the historical data set to determine the data set corresponding to each data type.
[0091] S303: In response to the creation instruction of the activity object, obtain the data import logic of the activity object.
[0092] S304: Identify the data elements that match each data type in the data import logic, establish an association relationship between the data elements and the data types, and determine the target data set associated with each data element.
[0093] S305: Assemble each target data set according to the data import logic to obtain the data object of the active object, and store the data object into a preset data queue.
[0094] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The data processing principles in the illustrated embodiments are the same and will not be described in detail here.
[0095] In an embodiment of the present invention, batch import of historical data is achieved through data templates, and the imported historical data can be divided according to data types so that each data set can be imported to generate a data object when an active object is created. In this way, in an embodiment of the present invention, batch import and queue storage can be used to respond to data import instructions and complete data import in a timely manner, thereby reducing the time consumption of data import, avoiding occupying too many system resources, and improving the efficiency of data import.
[0096] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a data processing device 400, such as Figure 4 As shown, the device 400 includes:
[0097] The import unit 401 is used to obtain a corresponding data template in response to a data import instruction, so as to import a historical data set based on the data template;
[0098] A determination unit 402 is used to obtain a data type of each data in the historical data set to determine a data set corresponding to each data type;
[0099] The determining unit 402 is further configured to obtain the data import logic of the active object in response to the creation instruction of the active object, and extract the data elements associated with the active object based on the data import logic to determine the target data set associated with each of the data elements;
[0100] The storage unit 401 is used to assemble each of the target data sets according to the data import logic to obtain the data object of the active object, and store the data object in a preset data queue.
[0101] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be described again here.
[0102] In one embodiment, the determining unit 402 is specifically configured to:
[0103] Identify the data elements that match each of the data types in the data import logic, establish an association relationship between the data elements and the data types, and determine a target data set associated with each of the data elements.
[0104] In one embodiment, the determining unit 402 is specifically configured to:
[0105] Based on the combination and arrangement of each data element in the data import logic, the target data sets of each data element are combined based on the combination method to obtain a combined data set, and the combined data sets are arranged based on the arrangement method to obtain the data object of the active object.
[0106] In one embodiment, the determining unit 402 is specifically configured to:
[0107] The data description of each historical data is extracted based on the data template, and the keywords associated with the activity basic data in each data description are identified to determine the data type of each historical data based on the keywords.
[0108] In one embodiment, the determining unit 402 is specifically configured to:
[0109] Calling a preset clustering model to cluster the historical data set based on the data type to obtain an initial data set corresponding to each data type;
[0110] The sorting rules of each of the data types are called to sort the data in the initial data set to determine the data set corresponding to each data type.
[0111] In one embodiment, the storage unit 404 is further used for:
[0112] In response to the data object belonging to the first structure data, the data object is stored in a preset database; in response to the data object belonging to the second structure data, an index file of the data object is established, a storage location is determined, and the data object is stored in the storage location.
[0113] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 2 The method of the illustrated embodiment is the same and will not be described again here.
[0114] In an embodiment of the present invention, in response to a data import instruction, a historical data set can be imported in batches based on a data template; the data type of each historical data is obtained to determine the data set corresponding to each data type; for the creation instruction of an active object, the data import logic of the active object can be obtained, and each data element in the data import logic can be extracted to determine the target data set associated with each data element; each target data set is assembled according to the data import logic to obtain the data object of the active object, and the data object is stored in a preset data queue. In an embodiment of the present invention, batch import of historical data is achieved through a data template, and the imported historical data can be divided according to the data type, so that each data set can be imported when the active object is created to generate a data object. In this way, in an embodiment of the present invention, through batch import and queue storage, the data import instruction can be responded to in a timely manner and the data import can be completed, reducing the time consumption of data import, avoiding occupying too many system resources, and improving the efficiency of data import.
[0115] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.
[0116] The electronic device of an embodiment of the present invention comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the data processing method provided by the embodiment of the present invention.
[0117] Figure 5 An exemplary system architecture 500 is shown to which the data processing method or data processing apparatus according to the embodiment of the present invention can be applied.
[0118] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0119] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503.
[0120] The terminal devices 501 , 502 , and 503 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0121] The server 505 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.
[0122] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the data processing device is generally set in the server 505 .
[0123] It should be understood that Figure 5 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 the implementation requirements.
[0124] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an embodiment of the present invention. Figure 6 The computer system 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.
[0125] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0126] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0127] 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 includes a 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 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0128] 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.
[0129] 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 unit, a program segment, or a part of a code, and the above-mentioned unit, 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.
[0130] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as: a processor includes an import unit, a determination unit, and a storage unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the import unit may also be described as a "unit for importing functions".
[0131] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or 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 executes the data processing method provided by the present invention.
[0132] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method provided by an embodiment of the present invention.
[0133] 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 method for data processing, characterized in that: include: In response to the data import instruction, obtain a corresponding data template to batch import the historical data set based on the data template; Acquire the data type of each data in the historical data set to determine the data set corresponding to each data type; In response to a creation instruction of an active object, obtaining data import logic of the active object, extracting data elements associated with the active object based on the data import logic to determine a target data set associated with each data element; Each of the target data sets is assembled according to the data import logic to obtain the data object of the active object, and the data object is stored in a preset data queue.
2. The method according to claim 1, characterized in that: Extracting each data element associated with the activity object based on the data import logic and determining a target data set associated with each data element includes: Identify the data elements that match each of the data types in the data import logic, establish an association relationship between the data elements and the data types, and determine a target data set associated with each of the data elements.
3. The method according to claim 2, characterized in that Assembling each of the target data sets according to the data import logic to obtain the data object of the active object includes: Based on the combination and arrangement of each data element in the data import logic, the target data sets of each data element are combined based on the combination method to obtain a combined data set, and the combined data sets are arranged based on the arrangement method to obtain the data object of the active object.
4. The method according to claim 1, characterized in that: The data type of each data in the historical data set is obtained, including: The data description of each historical data is extracted based on the data template, and the keywords associated with the activity basic data in each data description are identified to determine the data type of each historical data based on the keywords.
5. The method according to claim 1, characterized in that The step of determining a data set corresponding to each data type includes: Calling a preset clustering model to cluster the historical data set based on the data type to obtain an initial data set corresponding to each data type; The sorting rules of each of the data types are called to sort the data in the initial data set to determine the data set corresponding to each data type.
6. The method according to claim 1, characterized in that After storing the data object in a preset data queue, the method further includes: In response to the data object belonging to the first structure data, the data object is stored in a preset database; in response to the data object belonging to the second structure data, an index file of the data object is established, a storage location is determined, and the data object is stored in the storage location.
7. A data processing device, characterized in that: include: An import unit, configured to obtain a corresponding data template in response to a data import instruction, so as to import a historical data set based on the data template; A determination unit, used to obtain a data type of each data in the historical data set to determine a data set corresponding to each data type; The determining unit is further configured to obtain data import logic of the active object in response to a creation instruction of the active object, and extract each data element associated with the active object based on the data import logic to determine a target data set associated with each data element; The storage unit is used to assemble each of the target data sets according to the data import logic to obtain the data object of the active object, and store the data object in a preset data queue.
8. The device according to claim 6, characterized in that The determining unit is specifically configured to: Identify the data elements that match each of the data types in the data import logic, establish an association relationship between the data elements and the data types, and determine a target data set associated with each of the data elements.
9. An electronic device, 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 6.
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 6 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Data import method and device, computer readable storage medium and computer equipment
CN111444253A
Multithread-based data import method and system and storage medium
CN112445596A
Data batch import method and system, computer device and storable medium
CN115718777A
Data processing method and device, electronic equipment and storage medium
CN118152629A
Method for quickly importing data in batches, and electronic apparatus and computer-readable storage medium
WO2019169693A1
