Data acquisition method, device, electronic device, storage medium and program product
By pre-establishing the data extraction view in the production system and updating the view to adapt to new product data, the problem of long data merging in the existing technology is solved, and the efficiency and real-time nature of data extraction are achieved.
Patent Information
- Application Number
- CN202110004063.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-01-04
AI Technical Summary
In the existing technology, after a new product is added to the production system, it takes 2-3 days to configure data access and modify the data extraction script, resulting in a long process of merging data into the data warehouse, which cannot satisfy the front-end business's demand for new product data. Real-time needs.
Establish data extraction views for the same dimensions of different products in advance, and update the view after new product data is generated in the production system, so that the downstream data warehouse can directly obtain the centralized data through this view, avoiding the creation of data extraction tasks on the downstream warehouse side. and data merging operations.
It greatly improves the efficiency of data extraction, saves manpower and material costs, and meets the real-time needs of front-end business for new product data.
Smart Images

Figure CN112685485B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a data acquisition method, device, electronic device, storage medium, and program product. Background Art
[0002] Big data clusters need to centrally store the data of production systems for easy management and downstream use. However, the data structure design of the upstream production system for the continuous expansion of business is not conducive to data extraction by big data clusters. For example, product a in the generation system corresponds to a set of data tables, product b corresponds to a set of data tables, and different products have the same data structure, such as data tables including transaction, merchant and other dimensional data, and data between different products will not be repeated. However, the downstream data warehouse requires a collection of data of the same dimension for all products, such as a collection of transaction, merchant and other dimensions. In the existing technology, usually after a new product is added to the production system, the background data management platform needs to configure the data access of the new product first, which takes about 2-3 days, and then modify the data extraction script to merge the data of the new product into the collection table of the data warehouse, which also takes about 2-3 days. This method of implementation is time-consuming and inefficient, and cannot meet the real-time needs of the front-end business department for new product data. Summary of the invention
[0003] Embodiments of the present disclosure provide a data acquisition method, device, electronic device, storage medium, and program product.
[0004] In a first aspect, an embodiment of the present disclosure provides a data acquisition method, including:
[0005] In response to a new product addition event, obtaining at least one data extraction view;
[0006] Update the data extraction view according to the newly added new product;
[0007] In response to a data extraction request from the data management platform, extract product data according to the updated data extraction view;
[0008] The product data is returned to the data management platform.
[0009] Further, updating the data extraction view according to the newly added new product includes:
[0010] The view creation statement corresponding to the data extraction view is updated so as to update the data of the new product to the data extraction view.
[0011] Further, in response to a data extraction request from the data management platform, extracting product data according to the updated data extraction view includes:
[0012] In response to the data extraction request, the product data is extracted from a physical table corresponding to the product recorded in the data extraction view.
[0013] Furthermore, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
[0014] Further, extracting product data according to the updated data extraction view includes:
[0015] According to the updated data extraction view, product data of the target dimension is extracted from multiple physical tables corresponding to multiple products.
[0016] In a second aspect, an embodiment of the present disclosure provides a data acquisition method, including:
[0017] Create a data extraction task;
[0018] Executing the data extraction task to extract product data from the production platform based on the data extraction view created by the production platform;
[0019] The product data returned by the production platform is received, and the product data is stored in a data warehouse.
[0020] Furthermore, the method further comprises:
[0021] In response to a new product addition event, the data extraction task is executed to extract new product data from the production platform based on the updated data extraction view of the production platform.
[0022] Furthermore, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
[0023] Further, receiving the product data returned by the production platform and storing the product data in a data warehouse includes:
[0024] storing the product data obtained from the same data extraction view in an associated manner;
[0025] The product data obtained from different data extraction views are stored separately.
[0026] Furthermore, create a data extraction task, including:
[0027] The data extraction task is created by configuring in an interface provided by the ETL tool; and / or,
[0028] The data extraction task is created by writing a database script supported by the data warehouse.
[0029] Further, receiving the product data returned by the production platform and storing the product data in a data warehouse includes:
[0030] The product data obtained through the same data extraction view is integrated according to pre-established ETL rules and then stored in the data warehouse.
[0031] In a third aspect, an embodiment of the present disclosure provides a data acquisition method, including:
[0032] The production platform obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the new product;
[0033] The data management platform creates a data extraction task and executes the data extraction task;
[0034] The production platform extracts product data according to the updated data extraction view in response to the data extraction request from the data management platform;
[0035] The production platform returns the product data to the data management platform;
[0036] The data management platform receives the product data returned by the production platform, and stores the product data in a data warehouse.
[0037] Further, updating the data extraction view according to the newly added new product includes:
[0038] The production platform updates the view creation statement corresponding to the data extraction view so as to update the data of the new product to the data extraction view.
[0039] Furthermore, the production platform extracts product data according to the updated data extraction view in response to the data extraction request of the data management platform, including:
[0040] In response to the data extraction request, the production platform extracts the product data from the physical table corresponding to the product recorded in the data extraction view.
[0041] Furthermore, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
[0042] Further, extracting product data according to the updated data extraction view includes:
[0043] The production platform extracts product data of the target dimension from multiple physical tables corresponding to multiple products according to the updated data extraction view.
[0044] Furthermore, the method further comprises:
[0045] The data management platform executes the data extraction task in response to a new product addition event, so as to extract new product data from the production platform based on the data extraction view updated by the production platform.
[0046] Furthermore, the data management platform receives the product data returned by the production platform and stores the product data in a data warehouse, including:
[0047] The data management platform stores the product data obtained from the same data extraction view in an associated manner;
[0048] The data management platform stores the product data obtained from different data extraction views separately.
[0049] Furthermore, the data management platform creates a data extraction task, including:
[0050] The data management platform creates the data extraction task by configuring in an interface provided by the ETL tool; and / or,
[0051] The data management platform creates the data extraction task by writing a database script supported by the data warehouse.
[0052] Furthermore, the data management platform receives the product data returned by the production platform and stores the product data in a data warehouse, including:
[0053] The data management platform integrates the product data obtained through the same data extraction view according to pre-established ETL rules and stores them in the data warehouse.
[0054] In a fourth aspect, an embodiment of the present disclosure provides a data acquisition device, including:
[0055] An acquisition module, configured to acquire at least one data extraction view in response to a new product addition event;
[0056] An updating module, configured to update the data extraction view according to the newly added new product;
[0057] an extraction module, configured to extract product data according to the updated data extraction view in response to a data extraction request from the data management platform;
[0058] The returning module is configured to return the product data to the data management platform.
[0059] In a fifth aspect, an embodiment of the present disclosure provides a data acquisition device, including:
[0060] A creation module, which is configured to create data extraction tasks;
[0061] an execution module, configured to execute the data extraction task so as to extract product data from the production platform based on the data extraction view created by the production platform;
[0062] The receiving module is configured to receive the product data returned by the production platform and store the product data in a data warehouse.
[0063] The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions.
[0064] In one possible design, the structure of the above-mentioned device includes a memory and a processor, the memory is used to store one or more computer instructions that support the above-mentioned device to execute the above-mentioned corresponding method, and the processor is configured to execute the computer instructions stored in the memory. The above-mentioned device may also include a communication interface for the above-mentioned device to communicate with other devices or communication networks.
[0065] In a sixth aspect, an embodiment of the present disclosure provides a data acquisition system, including: a production platform and a data management platform;
[0066] The production platform obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the newly added new product;
[0067] The data management platform creates a data extraction task and executes the data extraction task;
[0068] The production platform extracts product data according to the updated data extraction view in response to the data extraction request from the data management platform;
[0069] The production platform returns the product data to the data management platform;
[0070] The data management platform receives the product data returned by the production platform, and stores the product data in a data warehouse.
[0071] In a seventh aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions that support any of the above-mentioned devices to execute the above-mentioned corresponding methods, and the processor is configured to execute the computer instructions stored in the memory. Any of the above-mentioned devices may also include a communication interface for communicating with other devices or communication networks.
[0072] In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by any of the above-mentioned devices, which includes computer instructions involved in executing any of the above-mentioned methods.
[0073] In a ninth aspect, an embodiment of the present disclosure provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, they are used to implement the steps of the method described in any of the above aspects.
[0074] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0075] The technical solution provided in the embodiment of the present disclosure pre-establishes a data extraction view for product data of the same dimension of different products. After new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product on the downstream warehouse side. After the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0076] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Other features, purposes and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0078] Figure 1 A flow chart showing a data acquisition method according to an embodiment of the present disclosure;
[0079] Figure 2 A flow chart showing a data acquisition method according to another embodiment of the present disclosure;
[0080] Figure 3 A flow chart showing a data acquisition method according to another embodiment of the present disclosure;
[0081] Figure 4A schematic diagram showing an application scenario of a data acquisition method according to an embodiment of the present disclosure;
[0082] Figure 5 An overall flow chart of a data acquisition method according to an embodiment of the present disclosure is shown;
[0083] Figure 6 A structural block diagram of a data acquisition device according to an embodiment of the present disclosure is shown;
[0084] Figure 7 A structural block diagram of a data acquisition device according to another embodiment of the present disclosure is shown;
[0085] Figure 8 A structural block diagram of a data processing system according to another embodiment of the present disclosure is shown;
[0086] Fig. 9 It is a structural diagram of a computer system suitable for implementing a data acquisition method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0087] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0088] In the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof existing or being added.
[0089] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0090] The product data of different products and different dimensions (or types) of the same product produced in the upstream production system are stored in different physical tables respectively, and the downstream data warehouse needs to centrally summarize and store the data of different products, which will be stored in the physical table in the database, and the product data of the same dimension (or type) of different products are centrally stored for the convenience of downstream users. In view of the above situation, the technical solution provided by the embodiment of the present disclosure pre-establishes a data extraction view for product data of the same dimension of different products. After the new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product at the downstream warehouse end, and after the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0091] Figure 1 A flow chart of a data acquisition method according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the data acquisition method includes the following steps S101-S104:
[0092] In step S101, in response to a new product addition event, at least one data extraction view is obtained;
[0093] In step S102, the data extraction view is updated according to the newly added new product;
[0094] In step S103, in response to a data extraction request from the data management platform, extract product data according to the updated data extraction view;
[0095] In step S104, the product data is returned to the data management platform.
[0096] As mentioned above, the big data cluster needs to centrally store the data of the production system for easy management and downstream use. However, the data structure design of the upstream production system for the continuous expansion of business is not conducive to data extraction by the big data cluster. For example, product a in the generation system corresponds to a set of data tables, product b corresponds to a set of data tables, and the data structures of different products are consistent, such as data tables including transaction, merchant and other dimensional data, and the data between different products will not be repeated. However, the downstream data warehouse requires a collection of data of the same dimension for all products, such as a collection of transaction, merchant and other dimensions. In the existing technology, usually after a new product is added to the production system, the background data management platform needs to configure the data access of the new product first, which takes about 2-3 days, and then modify the data extraction script to merge the data of the new product into the collection table of the data warehouse, which also takes about 2-3 days. This method is time-consuming and inefficient to implement, and cannot meet the real-time needs of the front-end business department for new product data.
[0097] In view of the above problems, a data acquisition method is proposed in this embodiment. In the data acquisition method, a data extraction view for product data of the same dimension of different products is pre-established. After the new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product at the downstream warehouse end, and after the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0098] In one embodiment of the present disclosure, the data acquisition method may be applicable to forming a virtual collection of product data of a newly added product and product data of an original product through a data extraction view in a production system.
[0099] The product data produced in the production system is stored in the physical table, and the product data of different products or the product data of different dimensions (or different types) of the same product will be recorded in different physical tables. In view of this situation, in one embodiment of the present disclosure, a data extraction view is created in the production system. The data extraction view is a virtual view used to form a virtual collection of product data in different physical tables. The physical table is used to actually store product data, and the virtual view can be understood as a viewing window of the physical table. The operation of the virtual view is consistent with the operation of the physical table, but the virtual view does not actually store data. The operation of the virtual view is actually mapped to the physical table at the low level.
[0100] In one embodiment of the present disclosure, as the business continues to expand in the production system, new products will be continuously added. Product data of the same dimension of a product can be stored in one or more physical tables, and product data of different dimensions of a product can be stored in different physical tables, and product data of different products can also be stored in different physical tables. The product data of the newly added products can also be stored in a new physical table, and the data of different dimensions in the product data of the newly added products can be stored in different physical tables respectively. For example, the transaction data of product a is stored in physical table 1, the merchant data of product a is stored in physical table 2, the transaction data of product b is stored in physical table 3, and the merchant data of product b is stored in physical table 4, etc.
[0101] The downstream data warehouse obtains product data of all products from the production system, and then stores the data collection of the same dimension of different products. For example, there are products a and b in the production system, and the downstream data warehouse stores collection 1 of the transaction data of products a and b. The downstream data warehouse also stores collection 2 of the merchant data of products a and b.
[0102] After adding product c to the production system, the transaction data of product c can be stored in physical table 5, and the merchant data of product c can be stored in physical table 6. The downstream data warehouse can obtain the product data of the newly added product c from the production system and then store it in collections 1 and 2.
[0103] The method in the prior art is that the downstream data warehouse obtains physical table 5 storing the transaction data of product c and physical table 6 storing the merchant data of product c from the production system, and merges the data in physical tables 5 and 6 into collections 1 and 2 respectively. This method involves extracting the data of physical tables 5 and 6 from the production system and merging the data of physical tables 5 and 6 into collections 1 and 2, which involves a long cycle and cannot meet the real-time needs of downstream data users such as front-end business departments for new product data. The above is only a simple example to illustrate this process. In actual applications, the situation will be much more complicated, and the amount of data will also be large, and the whole process will be time-consuming and labor-intensive.
[0104] In one embodiment of the present disclosure, one or more data extraction views can be established for product data in a production system, and the data extraction views correspond to data collections in a downstream data warehouse. For example, a data extraction view can be established corresponding to collection 1 of transaction data storing products, and another data extraction view can be established corresponding to collection 2 of merchant data storing products.
[0105] When the downstream data warehouse obtains product data, it directly accesses the data extraction view created in the production system instead of directly accessing the physical table of the product. After adding new products to the production system, the downstream data warehouse does not need to be modified. Instead, the production system updates the data extraction view and adds the viewing method of the product data of the new product to the data extraction view.
[0106] In one embodiment of the present disclosure, the data management platform belongs to the downstream data warehouse. The data management platform can obtain product data based on the data extraction view. After the generation system receives the request from the data management platform to obtain the newly added data, it extracts data from the physical table of the product through the updated data extraction view and returns the data to the data management platform so that the data management platform can store the data of the newly added product in the downstream data warehouse.
[0107] The technical solution provided in the embodiment of the present disclosure pre-establishes a data extraction view for product data of the same dimension of different products. After new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product on the downstream warehouse side. After the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0108] In an embodiment of the present disclosure, step S102, i.e., the step of updating the data extraction view according to the newly added new product, may further include the following steps:
[0109] The view creation statement corresponding to the data extraction view is updated so as to update the data of the new product to the data extraction view.
[0110] In this implementation, taking SQL as an example, a view is a visualized table based on the result set of an SQL statement. A view contains rows and columns, similar to a real physical table. The fields in a view come from the fields in a real physical table in one or more databases. The required data can be obtained by adding SQL functions, WHERE and JOIN statements to the view.
[0111] After adding a new product to the generation system, you can update the view creation statement in the data extraction view and add the statement for obtaining the product data of the new product to the view creation statement, so that the data of the new product can be obtained through the data extraction view.
[0112] For example, the data extraction view corresponding to the original collection 1, which is the collection storing the transaction data of products, can obtain the transaction data of all original products in the generation system through this data extraction view. After adding a new product, you can update the view creation statement of the data extraction view to obtain the transaction data of the new product from the data extraction view.
[0113] In one embodiment of the present disclosure, step S103, i.e., the step of extracting product data according to the updated data extraction view in response to the data extraction request of the data management platform, may further include the following steps:
[0114] In response to the data extraction request, the product data is extracted from a physical table corresponding to the product recorded in the data extraction view.
[0115] In this implementation, when the downstream data warehouse obtains the latest product data from the production system, it can send a data extraction request to the production system. After receiving the data extraction request, the production system can extract the product data based on the physical table corresponding to the product recorded in the data extraction view and return it to the downstream data warehouse.
[0116] The downstream data warehouse can obtain new product data from the production system periodically or when triggered by an event of new data. After receiving the data extraction request, the production system can return the new product data to the downstream data warehouse based on the new data in the data extraction view. The downstream data warehouse can directly merge the obtained product data into the corresponding collection.
[0117] In one embodiment of the present disclosure, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product. The data extraction view may include product data of the same dimension of some or all products in the production system. For example, one data extraction view may include transaction data of all products in the production system, while another data extraction view may include merchant data of all products in the production system. The production system stores product data in physical tables, and each physical table may store product data of one dimension for one product.
[0118] In one embodiment of the present disclosure, step S103, i.e., the step of extracting product data according to the updated data extraction view, may further include the following steps:
[0119] According to the updated data extraction view, product data of the target dimension is extracted from multiple physical tables corresponding to multiple products.
[0120] In this implementation, the same data extraction view may include product data from multiple physical tables. For example, data of one dimension of a product is stored in the same physical table. Since a data extraction view involves product data of the same dimension of multiple products, after receiving a data extraction request from a downstream data warehouse, the data extraction view can be used to extract product data of the same dimension from multiple physical tables corresponding to the multiple products and return it to the downstream data warehouse.
[0121] Figure 2 A flow chart showing a data acquisition method according to another embodiment of the present disclosure is shown as follows: Figure 2 As shown, the data merging method includes the following steps S201-S203:
[0122] In step S201, a data extraction task is created;
[0123] In step S202, the data extraction task is executed to extract product data from the production platform based on the data extraction view created by the production platform;
[0124] In step S203, the product data returned by the production platform is received, and the product data is stored in a data warehouse.
[0125] As mentioned above, the big data cluster needs to centrally store the data of the production system for easy management and downstream use. However, the data structure design of the upstream production system for the continuous expansion of business is not conducive to data extraction by the big data cluster. For example, product a in the generation system corresponds to a set of data tables, product b corresponds to a set of data tables, and the data structures of different products are consistent, such as data tables including transaction, merchant and other dimensional data, and the data between different products will not be repeated. However, the downstream data warehouse requires a collection of data of the same dimension for all products, such as a collection of transaction, merchant and other dimensions. In the existing technology, usually after a new product is added to the production system, the background data management platform needs to configure the data access of the new product first, which takes about 2-3 days, and then modify the data extraction script to merge the data of the new product into the collection table of the data warehouse, which also takes about 2-3 days. This method is time-consuming and inefficient to implement, and cannot meet the real-time needs of the front-end business department for new product data.
[0126] In view of the above problems, a data acquisition method is proposed in this embodiment. In the data acquisition method, a data extraction view for product data of the same dimension of different products is pre-established. After the new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product at the downstream warehouse end, and after the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0127] In one embodiment of the present disclosure, the data acquisition method can be applied to a data management platform at the downstream data warehouse end, and after obtaining product data from the production system and centrally storing it, it is provided to the front-end business department.
[0128] When the data management platform at the downstream data warehouse end obtains the product data of all products in the production system, it can create a data extraction task and execute the data extraction task so that the data extraction task can obtain the product data from the production system based on the data extraction view established by the production system end. After receiving the product data returned by the generation platform, the downstream data warehouse end can store the data of the same dimension of multiple products obtained from the same data extraction view as a collection, and store the data of different dimensions of multiple products obtained from different data extraction views as different collections. It should be noted that different data extraction tasks can be created for different data extraction views, or the same data extraction task can be created for different data extraction views, and product data can be obtained from different data extraction views at one time in the data extraction task.
[0129] In one embodiment of the present disclosure, the method may further include the following steps:
[0130] In response to a new product addition event, the data extraction task is executed to extract new product data from the production platform based on the updated data extraction view of the production platform.
[0131] In this implementation, after a new product is added to the production system, the production system can update the data extraction view based on the information of the new product so that the product data of the new product can be reflected in the data extraction view, so that the downstream data warehouse can obtain the data of the new product through the data extraction view.
[0132] After completing the update of the data extraction view, the production system can send a new product addition event to the downstream data warehouse so that the downstream data warehouse can obtain the product data of the new product from the production system in a timely manner. After receiving the new product addition event, the data management platform of the downstream data warehouse can execute the data extraction task, which can be the original created data extraction task without the need for the data management platform to modify or recreate the data extraction task for the new product. By executing the data extraction task, the product data of the new product can be extracted from the production system, and then the product data can be merged into the corresponding collection in the downstream data warehouse.
[0133] In one embodiment of the present disclosure, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
[0134] In this implementation, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product. The data extraction view may include product data of the same dimension of some or all products in the production system. For example, one data extraction view may include transaction data of all products in the production system, while another data extraction view may include merchant data of all products in the production system. The production system stores product data in physical tables, and each physical table may store product data of one dimension for one product.
[0135] In one embodiment of the present disclosure, step S203, i.e., the step of receiving the product data returned by the production platform and storing the product data in a data warehouse, may further include the following steps:
[0136] storing the product data obtained from the same data extraction view in an associated manner;
[0137] The product data obtained from different data extraction views are stored separately.
[0138] In this implementation, associative storage of product data may be implemented by storing the product data in the same collection. The same collection may be represented by the same physical table, the same physical page, the same physical block, etc. The specific details may be determined based on actual applications and will not be elaborated here.
[0139] The data extraction view can include product data of the same dimension for some or all products in the production system. For example, one data extraction view can include transaction data for all products in the production system, while another data extraction view can include merchant data for all products in the production system. The production system stores product data in physical tables, and each physical table can store product data of one dimension for one product.
[0140] The same data extraction view can include product data from multiple physical tables. For example, the data of one dimension of a product is stored in the same physical table. Since a data extraction view involves product data of the same dimension of multiple products, the data received from the production system for the same data extraction view can correspond to the data of the same dimension of multiple products, that is, to product data of the same dimension extracted from multiple physical tables. The downstream data warehouse can directly store it in the corresponding collection without the need to perform local data merging and other operations.
[0141] In one embodiment of the present disclosure, step S201, i.e., the step of creating a data extraction task, may further include the following steps:
[0142] The data extraction task is created by configuring in an interface provided by the ETL tool; and / or,
[0143] The data extraction task is created by writing a database script supported by the data warehouse.
[0144] In this implementation, ETL is the abbreviation of Extract-Transform-Load, which is the process of data extraction, transformation and loading. It can also be understood as the process of data extraction, transformation and loading. ETL can integrate the data obtained from the data source according to unified rules, and is responsible for completing the process of transforming data from the data source to the target data warehouse. ETL methods can be divided into two categories: ETL tool software and database script. ETL tool software refers to the installation of a set of ETL tool software in addition to the database software used by the data warehouse itself. The ETL tool software connects the data source and the target data warehouse through a unified interface, and implements multiple ETL processes through multiple configuration files and task plans.
[0145] The so-called database script class refers to the use of remote database connection, tables, views, stored procedures, jobs and other functions of the database software of the data warehouse itself to implement the ETL process by writing and running database scripts, without the need to install additional ETL tool software.
[0146] In one embodiment of the present disclosure, step S203, i.e., the step of receiving the product data returned by the production platform and storing the product data in a data warehouse, may further include the following steps:
[0147] The product data obtained through the same data extraction view is integrated according to pre-established ETL rules and then stored in the data warehouse.
[0148] In this implementation, on the production system side, the data that the downstream data warehouse needs to integrate is provided to the downstream data warehouse through a data extraction view. After the data management platform of the downstream data warehouse obtains the product data obtained in the same data extraction view, it can be integrated according to pre-established ETL rules and stored in the data warehouse.
[0149] Figure 2 The technical terms and technical features involved in the embodiments shown and related Figure 1 The technical terms and technical features mentioned in the embodiments shown and related are the same or similar. Figure 2 The explanation and description of the technical terms and technical features involved in the embodiments shown and related can refer to the above Figure 1 The explanations of the illustrated and related embodiments will not be repeated here.
[0150] Figure 3 A flow chart of a data acquisition method according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the data acquisition method includes the following steps S301-S305:
[0151] In step S301, the production platform obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the newly added new product;
[0152] In step S302, the data management platform creates a data extraction task and executes the data extraction task;
[0153] In step S303, the production platform extracts product data according to the updated data extraction view in response to the data extraction request of the data management platform;
[0154] In step S304, the production platform returns the product data to the data management platform;
[0155] In step S305, the data management platform receives the product data returned by the production platform, and stores the product data in a data warehouse.
[0156] As mentioned above, the big data cluster needs to centrally store the data of the production system for easy management and downstream use. However, the data structure design of the upstream production system for the continuous expansion of business is not conducive to data extraction by the big data cluster. For example, product a in the generation system corresponds to a set of data tables, product b corresponds to a set of data tables, and the data structures of different products are consistent, such as data tables including transaction, merchant and other dimensional data, and the data between different products will not be repeated. However, the downstream data warehouse requires a collection of data of the same dimension for all products, such as a collection of transaction, merchant and other dimensions. In the existing technology, usually after a new product is added to the production system, the background data management platform needs to configure the data access of the new product first, which takes about 2-3 days, and then modify the data extraction script to merge the data of the new product into the collection table of the data warehouse, which also takes about 2-3 days. This method is time-consuming and inefficient to implement, and cannot meet the real-time needs of the front-end business department for new product data.
[0157] In view of the above problems, a data acquisition method is proposed in this embodiment. In the data acquisition method, a data extraction view for product data of the same dimension of different products is pre-established. After the new product data is produced in the production system, the data extraction view can be updated according to the new product, so that the downstream data warehouse can directly obtain the centralized data through the data extraction view, without the need to create a data extraction task for the newly added product at the downstream warehouse end, and after the product data of the new product is extracted and processed by executing the data extraction task, it is merged with the original data, etc., which can greatly improve the data extraction efficiency and save manpower and material costs.
[0158] In one embodiment of the present disclosure, the data acquisition method can be applied to a data acquisition system that forms a virtual collection of product data of new products and original products through a data extraction view. The data acquisition system includes a production platform and a data management platform at the downstream data warehouse end.
[0159] The product data produced in the production system is stored in the physical table, and the product data of different products or the product data of different dimensions (or different types) of the same product will be recorded in different physical tables. In view of this situation, in one embodiment of the present disclosure, a data extraction view is created in the production system. The data extraction view is a virtual view used to form a virtual collection of product data in different physical tables. The physical table is used to actually store product data, and the virtual view can be understood as a viewing window of the physical table. The operation of the virtual view is consistent with the operation of the physical table, but the virtual view does not actually store data. The operation of the virtual view is actually mapped to the physical table at the low level.
[0160] In one embodiment of the present disclosure, as the business continues to expand in the production system, new products will be continuously added. Product data of the same dimension of a product can be stored in one or more physical tables, and product data of different dimensions of a product can be stored in different physical tables, and product data of different products can also be stored in different physical tables. The product data of the newly added products can also be stored in a new physical table, and the data of different dimensions in the product data of the newly added products can be stored in different physical tables respectively. For example, the transaction data of product a is stored in physical table 1, the merchant data of product a is stored in physical table 2, the transaction data of product b is stored in physical table 3, and the merchant data of product b is stored in physical table 4, etc.
[0161] The downstream data warehouse obtains product data of all products from the production system, and then stores the data collection of the same dimension of different products. For example, there are products a and b in the production system, and the downstream data warehouse stores collection 1 of the transaction data of products a and b. The downstream data warehouse also stores collection 2 of the merchant data of products a and b.
[0162] After adding product c to the production system, the transaction data of product c can be stored in physical table 5, and the merchant data of product c can be stored in physical table 6. The downstream data warehouse can obtain the product data of the newly added product c from the production system and then store it in collections 1 and 2.
[0163] The method in the prior art is that the downstream data warehouse obtains physical table 5 storing the transaction data of product c and physical table 6 storing the merchant data of product c from the production system, and merges the data in physical tables 5 and 6 into collections 1 and 2 respectively. This method involves extracting the data of physical tables 5 and 6 from the production system and merging the data of physical tables 5 and 6 into collections 1 and 2, which involves a long cycle and cannot meet the real-time needs of downstream data users such as front-end business departments for new product data. The above is only a simple example to illustrate this process. In actual applications, the situation will be much more complicated, and the amount of data will also be large, and the whole process will be time-consuming and labor-intensive.
[0164] In one embodiment of the present disclosure, one or more data extraction views can be established for product data in a production system, and the data extraction views correspond to data collections in a downstream data warehouse. For example, a data extraction view can be established corresponding to collection 1 of transaction data storing products, and another data extraction view can be established corresponding to collection 2 of merchant data storing products.
[0165] When the downstream data warehouse obtains product data, it directly accesses the data extraction view created in the production system instead of directly accessing the physical table of the product. After adding new products to the production system, the downstream data warehouse does not need to be modified. Instead, the production system updates the data extraction view and adds the viewing method of the product data of the new product to the data extraction view.
[0166] In one embodiment of the present disclosure, the data management platform belongs to the downstream data warehouse. The data management platform can obtain product data based on the data extraction view. After the generation system receives the request from the data management platform to obtain the newly added data, it extracts data from the physical table of the product through the updated data extraction view and returns the data to the data management platform so that the data management platform can store the data of the newly added product in the downstream data warehouse.
[0167] When the data management platform at the downstream data warehouse end obtains the product data of all products in the production system, it can create a data extraction task and execute the data extraction task so that the data extraction task can obtain the product data from the production system based on the data extraction view established by the production system end. After receiving the product data returned by the generation platform, the downstream data warehouse end can store the data of the same dimension of multiple products obtained from the same data extraction view as a collection, and store the data of different dimensions of multiple products obtained from different data extraction views as different collections. It should be noted that different data extraction tasks can be created for different data extraction views, or the same data extraction task can be created for different data extraction views, and product data can be obtained from different data extraction views at one time in the data extraction task.
[0168] In an embodiment of the present disclosure, in step S301, the step of updating the data extraction view according to the newly added new product may further include the following steps:
[0169] The production platform updates the view creation statement corresponding to the data extraction view so as to update the data of the new product to the data extraction view.
[0170] In one embodiment of the present disclosure, step S303, i.e., the step of extracting product data according to the updated data extraction view in response to the data extraction request of the data management platform by the production platform, may further include the following steps:
[0171] In response to the data extraction request, the production platform extracts the product data from the physical table corresponding to the product recorded in the data extraction view.
[0172] In one embodiment of the present disclosure, the same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
[0173] In one embodiment of the present disclosure, in step S303, the step of extracting product data according to the updated data extraction view may further include the following steps:
[0174] The production platform extracts product data of the target dimension from multiple physical tables corresponding to multiple products according to the updated data extraction view.
[0175] In one embodiment of the present disclosure, the method may further include the following steps:
[0176] The data management platform executes the data extraction task in response to a new product addition event, so as to extract new product data from the production platform based on the data extraction view updated by the production platform.
[0177] In one embodiment of the present disclosure, step S305, i.e., the step in which the data management platform receives the product data returned by the production platform and stores the product data in the data warehouse, may further include the following steps:
[0178] The data management platform stores the product data obtained from the same data extraction view in an associated manner;
[0179] The data management platform stores the product data obtained from different data extraction views separately.
[0180] In one embodiment of the present disclosure, step S302, i.e., the step of the data management platform creating a data extraction task, may further include the following steps:
[0181] The data management platform creates the data extraction task by configuring in an interface provided by the ETL tool; and / or,
[0182] The data management platform creates the data extraction task by writing a database script supported by the data warehouse.
[0183] In one embodiment of the present disclosure, step S305, i.e., the step in which the data management platform receives the product data returned by the production platform and stores the product data in the data warehouse, may further include the following steps:
[0184] The data management platform integrates the product data obtained through the same data extraction view according to pre-established ETL rules and stores them in the data warehouse.
[0185] Figure 3 The technical terms and technical features involved in the embodiments shown and related Figure 1 and Figure 2 The technical terms and technical features mentioned in the embodiments shown and related are the same or similar. Figure 3 The explanation and description of the technical terms and technical features involved in the embodiments shown and related can refer to the above Figure 1 and Figure 2 The explanations of the illustrated and related embodiments will not be repeated here.
[0186] Figure 4 A schematic diagram showing an application scenario of a data acquisition method according to an embodiment of the present disclosure is shown. Figure 5 FIG. 2 shows an overall flow chart of a data acquisition method according to an embodiment of the present disclosure. Figure 4 and 5 As shown, the system may include a downstream data warehouse, a data management platform in a big data cluster, and a production system. The production system includes product data of multiple products, for example, it may include product 1, ... product n, and each product includes transaction information and merchant information. The production system establishes a full transaction view for the transaction information of all products, and another full merchant view for the merchant information of all products. The data management platform extracts product data from the physical table of the production system based on the full transaction view and the full merchant view through ETL operations, and stores it in the downstream data warehouse after cleaning, conversion, etc., so that the front-end business department can directly obtain the integrated data products from the downstream data warehouse.
[0187] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.
[0188] Figure 6 FIG. 1 is a block diagram showing a data acquisition device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 6 As shown, the data acquisition device includes:
[0189] The acquisition module 601 is configured to acquire at least one data extraction view in response to a new product addition event;
[0190] An updating module 602 is configured to update the data extraction view according to the newly added new product;
[0191] An extraction module 603 is configured to extract product data according to the updated data extraction view in response to a data extraction request from the data management platform;
[0192] The return module 604 is configured to return the product data to the data management platform.
[0193] In one embodiment of the present disclosure, the data acquisition device may be used to form a virtual collection of product data of a newly added product and product data of an original product through a data extraction view in a production system.
[0194] Figure 7 FIG. 1 is a block diagram showing a data acquisition device according to another embodiment of the present disclosure. The system can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 7 As shown, the data acquisition device includes:
[0195] A creation module 701 is configured to create a data extraction task;
[0196] An execution module 702 is configured to execute the data extraction task so as to extract product data from the production platform based on the data extraction view created by the production platform;
[0197] The receiving module 703 is configured to receive the product data returned by the production platform and store the product data in a data warehouse.
[0198] In one embodiment of the present disclosure, the data acquisition device may be applicable to a data management platform at a downstream data warehouse end, and after acquiring product data from a production system and storing it centrally, it may be provided to a front-end business department.
[0199] Figure 8 FIG. 2 shows a structural block diagram of a data acquisition system according to another embodiment of the present disclosure. The system can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 8 As shown, the data acquisition system includes: a production platform 801 and a data management platform 802;
[0200] The production platform 801 obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the newly added new product;
[0201] The data management platform 802 creates a data extraction task and executes the data extraction task;
[0202] The production platform 801 extracts product data according to the updated data extraction view in response to the data extraction request of the data management platform 802;
[0203] The production platform 801 returns the product data to the data management platform 802;
[0204] The data management platform 802 receives the product data returned by the production platform 801 and stores the product data in a data warehouse.
[0205] In one embodiment of the present disclosure, the data acquisition system may be applicable to a data acquisition system that forms a virtual collection of product data of a newly added product and product data of an original product through a data extraction view.
[0206] The technical features involved in the above-mentioned device embodiment and their corresponding explanations and descriptions are the same, corresponding or similar to the technical features involved in the method embodiment described above and their corresponding explanations and descriptions. For the technical features involved in the above-mentioned device embodiment and their corresponding explanations and descriptions, reference may be made to the technical features involved in the above-mentioned method embodiment and their corresponding explanations and descriptions, and the present disclosure will not repeat them here.
[0207] The present disclosure also discloses an electronic device, which includes a memory and a processor; wherein:
[0208] The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement any of the above method steps.
[0209] Fig. 9 It is a structural diagram of a computer system suitable for implementing a data acquisition method according to an embodiment of the present disclosure.
[0210] like Fig. 9 As shown, the computer system 900 includes a processing unit 901, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the computer system 900 are also stored. The processing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0211] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed. Among them, the processing unit 901 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0212] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the data transmission method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 909, and / or installed from a removable medium 911.
[0213] The embodiment of the present disclosure also discloses a computer program product, which includes a computer program / instruction, and when the computer program / instruction is executed by a processor, any of the above method steps is implemented.
[0214] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the road map or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or 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 square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0215] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0216] As another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present disclosure.
[0217] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A data acquisition method, the method being applicable to forming a virtual collection of product data of a newly added product and product data of an original product through a data extraction view in a production platform, comprising: In response to a new product addition event, obtaining at least one data extraction view; The data extraction view is a pre-created virtual view, and each of the data extraction views corresponds to a data collection in a downstream data warehouse to which the data management platform belongs; Update the data extraction view according to the newly added new product; The updated view creation statement of the data extraction view adds an acquisition statement for acquiring the data of the newly added product from the physical table storing the data of the new product; In response to a data extraction request from the data management platform, extract product data from the physical table of the production platform according to the updated data extraction view; the product data includes the newly added data of the new product; The product data is returned to the data management platform so that the data management platform stores the product data in a downstream data warehouse, and then the downstream data warehouse stores the data of the same dimension of multiple products obtained by the same data extraction view as different data collections; wherein, a data extraction view for product data of the same dimension of different products is established in advance, and after the production platform produces new product data, the data extraction view is updated according to the new product data, so that the downstream data warehouse directly obtains the data in the data collection through the data extraction view, without the need for the downstream data warehouse to create a data extraction task for the newly added product, and extract the new product data by executing the data extraction task and then merge it with the original data.
2. The method according to claim 1, wherein: Updating the data extraction view according to the newly added new product, including: The view creation statement corresponding to the data extraction view is updated so as to update the data of the new product to the data extraction view.
3. The method according to claim 1 or 2, wherein: Responding to a data extraction request from a data management platform, extracting product data according to the updated data extraction view includes: In response to the data extraction request, the product data is extracted from a physical table corresponding to the product recorded in the data extraction view.
4. The method according to claim 3, wherein: The same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
5. The method according to claim 4, wherein: Extracting product data according to the updated data extraction view includes: According to the updated data extraction view, product data of the target dimension is extracted from multiple physical tables corresponding to multiple products.
6. A data acquisition method, which is applicable to a data management platform at a downstream data warehouse end, which acquires product data from a production platform and stores it centrally before providing it to a front-end business department, wherein the production platform forms a virtual collection of product data of newly added products and product data of original products through a data extraction view by executing the method according to any one of claims 1 to 5, including: Create a data extraction task; Executing the data extraction task to extract product data from the production platform based on the data extraction view created by the production platform; The product data returned by the production platform is received, and the product data is stored in a data warehouse, so that the data warehouse stores data of the same dimension of multiple products obtained by the same data extraction view as different data collections.
7. The method according to claim 6, wherein: Also includes: In response to a new product addition event, the data extraction task is executed to extract new product data from the production platform based on the updated data extraction view of the production platform.
8. The method according to claim 6 or 7, wherein: The same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
9. The method according to claim 6 or 7, wherein: Receiving the product data returned by the production platform and storing the product data in a data warehouse includes: storing the product data obtained from the same data extraction view in an associated manner; The product data obtained from different data extraction views are stored separately.
10. The method according to claim 6 or 7, wherein: Create a data extraction task, including: The data extraction task is created by configuring in an interface provided by the ETL tool; and / or, The data extraction task is created by writing a database script supported by the data warehouse.
11. The method according to claim 6 or 7, wherein: Receiving the product data returned by the production platform and storing the product data in a data warehouse includes: The product data obtained through the same data extraction view is integrated according to pre-established ETL rules and then stored in the data warehouse.
12. A data acquisition method, the method being applicable to a data acquisition system of a data management platform including a production platform and a data warehouse, comprising: The production platform obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the newly added new product; The data extraction view is a pre-created virtual view, and each of the data extraction views corresponds to a data collection in a downstream data warehouse to which the data management platform belongs; The updated view creation statement of the data extraction view adds an acquisition statement for acquiring the data of the newly added product from the physical table storing the data of the new product; The data management platform creates a data extraction task and executes the data extraction task; The production platform extracts product data according to the updated data extraction view in response to the data extraction request from the data management platform; the product data includes the newly added data of the new product; The production platform returns the product data to the data management platform; The data management platform receives the product data returned by the production platform, and stores the product data in the data warehouse, so that the data warehouse can store the data of the same dimension of multiple products obtained by the same data extraction view as different data collections; wherein, a data extraction view for product data of the same dimension of different products is established in advance, and after the production platform produces new product data, the data extraction view is updated according to the new product data, so that the downstream data warehouse can directly obtain the data in the data collection through the data extraction view, without the need for the downstream data warehouse to create a data extraction task for the newly added product, and extract the new product data by executing the data extraction task and then merge it with the original data.
13. The method according to claim 12, wherein: Updating the data extraction view according to the newly added new product, including: The production platform updates the view creation statement corresponding to the data extraction view so as to update the data of the new product to the data extraction view.
14. The method according to claim 12 or 13, wherein: The production platform extracts product data according to the updated data extraction view in response to the data extraction request from the data management platform, including: In response to the data extraction request, the production platform extracts the product data from the physical table corresponding to the product recorded in the data extraction view.
15. The method according to claim 12 or 13, wherein: The same data extraction view involves data of the same dimension of multiple products; the physical table stores data of multiple dimensions of the same product.
16. The method according to claim 15, wherein: Extracting product data according to the updated data extraction view includes: The production platform extracts product data of the target dimension from multiple physical tables corresponding to multiple products according to the updated data extraction view.
17. The method according to any one of claims 12-13 and 16, wherein: The method further comprises: The data management platform executes the data extraction task in response to a new product addition event, so as to extract new product data from the production platform based on the data extraction view updated by the production platform.
18. The method according to any one of claims 12 to 13 and 16, wherein: The data management platform receives the product data returned by the production platform and stores the product data in a data warehouse, including: The data management platform stores the product data obtained from the same data extraction view in an associated manner; The data management platform stores the product data obtained from different data extraction views separately.
19. The method according to any one of claims 12-13 and 16, wherein: The data management platform creates a data extraction task, including: The data management platform creates the data extraction task by configuring in an interface provided by the ETL tool; and / or, The data management platform creates the data extraction task by writing a database script supported by the data warehouse.
20. The method according to any one of claims 12-13 and 16, wherein: The data management platform receives the product data returned by the production platform and stores the product data in a data warehouse, including: The data management platform integrates the product data obtained through the same data extraction view according to pre-established ETL rules and stores them in the data warehouse.
21. A data acquisition device, the device being adapted to form a virtual collection of product data of a newly added product and product data of an original product through a data extraction view in a production platform, comprising: An acquisition module, configured to acquire at least one data extraction view in response to a new product addition event; The data extraction view is a pre-created virtual view, and each of the data extraction views corresponds to a data collection in a downstream data warehouse to which the data management platform belongs; An updating module, configured to update the data extraction view according to the newly added new product; The updated view creation statement of the data extraction view adds an acquisition statement for acquiring the data of the newly added product from the physical table storing the data of the new product; An extraction module is configured to extract product data according to the updated data extraction view in response to a data extraction request from the data management platform; the product data includes the newly added data of the new product; The return module is configured to return the product data to the data management platform so that the data management platform stores the product data in the downstream data warehouse, and then the downstream data warehouse stores the data of the same dimension of multiple products obtained by the same data extraction view as different data collections; wherein, a data extraction view for product data of the same dimension of different products is established in advance, and after the production platform produces new product data, the data extraction view is updated according to the new product data, so that the downstream data warehouse directly obtains the data in the data collection through the data extraction view, without the need for the downstream data warehouse to create a data extraction task for the newly added product, and extract the new product data by executing the data extraction task and then merge it with the original data.
22. A data acquisition device, the device is suitable for a data management platform at a downstream data warehouse end, which obtains product data from a production platform and stores it centrally before providing it to a front-end business department, wherein the production platform forms a virtual collection of product data of newly added products and product data of original products through a data extraction view by executing the device of claim 21, including: A creation module, which is configured to create data extraction tasks; an execution module, configured to execute the data extraction task so as to extract product data from the production platform based on the data extraction view created by the production platform; The receiving module is configured to receive the product data returned by the production platform and store the product data in a data warehouse, so that the data warehouse can store the data of the same dimension of multiple products obtained by the same data extraction view as different data collections.
23. A data acquisition system, comprising: Production platform and data management platform; The production platform obtains at least one data extraction view in response to a new product addition event, and updates the data extraction view according to the newly added new product; The data extraction view is a pre-created virtual view, and each of the data extraction views corresponds to a data collection in a downstream data warehouse to which the data management platform belongs; The updated view creation statement of the data extraction view adds an acquisition statement for acquiring the data of the newly added product from the physical table storing the data of the new product; The data management platform creates a data extraction task and executes the data extraction task; The production platform extracts product data according to the updated data extraction view in response to the data extraction request from the data management platform; the product data includes the newly added data of the new product; The production platform returns the product data to the data management platform; The data management platform receives the product data returned by the production platform, and stores the product data in the data warehouse, so that the data warehouse can store the data of the same dimension of multiple products obtained by the same data extraction view as different data collections; wherein, a data extraction view for product data of the same dimension of different products is established in advance, and after the production platform produces new product data, the data extraction view is updated according to the new product data, so that the downstream data warehouse can directly obtain the data in the data collection through the data extraction view, without the need for the downstream data warehouse to create a data extraction task for the newly added product, and extract the new product data by executing the data extraction task and then merge it with the original data.
24. An electronic device comprising a memory and a processor; wherein: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the steps of any one of claims 1-20.
25. A computer-readable storage medium having computer instructions stored thereon, wherein: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
26. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 20.
