A risk control statistics method and device based on real-time data warehouse for data collection
By using the real-time data warehouse data collection method in the risk control engine, we obtain and associate data single tables, generate data wide tables, and forward them to the message queue, which solves the real-time and efficiency problems of the risk control engine in vehicle navigation. , achieving efficient acquisition of risk control statistical results.
Patent Information
- Application Number
- CN202110920001.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-11
AI Technical Summary
When the existing risk control engine is used in vehicle navigation, the data statistical processing is complicated, resulting in low real-time performance of the risk control results. The system load is large and the probability of errors is high, which affects the real-time and accuracy of the risk control statistical results.
Adopting a data collection method based on real-time data warehouse, by obtaining real-time synchronized data from upstream data sources, converting it into a single data table, and correlating it in the data warehouse to generate a data wide table, and then forward the data wide table to the message queue, so that When obtaining query instructions, the risk control engine directly obtains the data wide table from the message queue for statistics, thereby achieving the acquisition of real-time risk control results.
Significantly reduces the structural complexity and data processing load of the risk control engine, improves the real-time nature and processing efficiency of risk control results, meets the needs of real-time risk control statistics, and improves risk control through data storage and processing of message queues The engine's data acquisition flexibility and efficiency.
Smart Images

Figure CN113641758B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of applying real-time data warehouses to risk control engines, and in particular to a risk control statistics method and device based on real-time data warehouses for data collection. Background Art
[0002] With the development of the information society, information has also become a resource. Among them, risk control engines for reducing information risks have emerged. Existing risk control engines generally need to obtain data input from multiple parties, and the data comes from different upstream systems. After obtaining data from multiple upstream systems, the risk control engine processes it to obtain risk control results.
[0003] When the risk control engine is applied to the calculation of the vehicle's navigation route, a large amount of real-time data is required for statistics in order to obtain real-time risk control analysis results. The existing risk control system needs to process the data after obtaining a large amount of data from multiple upstream systems before performing risk control statistics to obtain the risk control results. The steps required by the risk control system to process data are complicated, which will lead to a high complexity of the risk control engine and a low processing efficiency of the risk control results, which in turn makes the real-time performance of the risk control results low, which is not conducive to application in the field of vehicle navigation. In addition, when the risk control system needs to process a large amount of data at the same time, the load of the risk control system is large and the probability of error may increase, which is not conducive to the real-time performance and accuracy of the risk control statistical results.
[0004] Therefore, it is urgent to invent a real-time risk control engine suitable for vehicle navigation or to improve the data processing method of the risk control engine. Summary of the invention
[0005] In order to overcome the technical defect of low real-time performance of the data statistical processing method of the above-mentioned existing risk control engine, the present invention provides a risk control statistical method and device based on real-time data warehouse for data collection, which can achieve real-time performance and simplify the structure of the risk control engine.
[0006] In order to solve the above problems, the present invention is implemented according to the following technical solutions:
[0007] In a first aspect, the present invention discloses a risk control statistics method based on real-time data warehouse data collection, comprising the following steps:
[0008] Obtain the upstream data source, and obtain real-time synchronization data from the upstream data source;
[0009] The real-time synchronized data is delivered to the data preparation area of the data warehouse to be converted into corresponding data tables;
[0010] Transport data tables to the detail layer of the data warehouse;
[0011] Obtaining a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on a single data table;
[0012] Forward the data wide table to the message queue;
[0013] When obtaining risk control query instructions, the risk control engine obtains the data wide table from the message queue and performs statistics to obtain real-time risk control results.
[0014] In conjunction with the first preferred implementation of the first aspect, after the real-time risk control result is output, the method further includes:
[0015] Back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
[0016] In conjunction with the second preferred implementation of the first aspect, the data association based on the data table specifically includes:
[0017] The data detail layer obtains a single table of data;
[0018] Based on the materialized view function, query the associated tables of the data tables to achieve data association of the data tables;
[0019] Get the corresponding data wide table.
[0020] In combination with the third preferred implementation of the first aspect, the related table query is performed on each data table based on the materialized view function, specifically including:
[0021] Based on the data table, establish the corresponding materialized view log;
[0022] Create corresponding materialized views;
[0023] Use materialized views to associate the data tables accordingly.
[0024] When obtaining the query instruction, query the associated data table based on the materialized view;
[0025] Get the corresponding query result feedback.
[0026] In conjunction with the fourth preferred implementation of the first aspect, enabling the risk control engine to obtain a wide table of data from a message queue and perform statistics specifically includes:
[0027] Get real-time risk control instructions;
[0028] Send a risk control statistics request to the risk control engine;
[0029] Send the corresponding data wide table information to the risk control engine;
[0030] Send instructions to the risk control engine to enable it to obtain the corresponding data wide table from the message queue;
[0031] Wait for the risk control engine to perform risk control statistics;
[0032] Obtain real-time risk control results from the risk control engine.
[0033] In a second aspect, the present invention further discloses a risk control statistics device based on real-time data warehouse for data collection, including a data acquisition module, a data tree module, a single table transmission module, a wide table acquisition module, a forwarding queue module and a risk control statistics module, wherein:
[0034] The data acquisition module is used to obtain the upstream data source, and obtain the real-time synchronization data from the upstream data source;
[0035] The data delivery module is used to deliver the real-time synchronization data to the data preparation area of the data warehouse to convert it into corresponding data tables;
[0036] The single table transport module is used to transport a single table of data to the detail layer of the data warehouse;
[0037] The wide table acquisition module is used to acquire a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on a single data table;
[0038] The forwarding queue module is used to forward the data wide table to the message queue;
[0039] The risk control statistics module is used to enable the risk control engine to obtain the data wide table from the message queue and perform statistics when obtaining risk control query instructions to obtain real-time risk control results.
[0040] In combination with the first preferred implementation of the second aspect, after the real-time risk control results are output, a backup backtracking module is also included, specifically including:
[0041] The backup backtracking module is used to back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
[0042] In conjunction with the second preferred implementation of the second aspect, the wide table acquisition module specifically includes:
[0043] A single table acquisition unit is used to enable the data detail layer to acquire a single table of data;
[0044] The data association unit is used to perform association table queries on the data tables based on the materialized view function to achieve data association of the data tables;
[0045] The data wide table unit is used to obtain the corresponding data wide table.
[0046] In conjunction with the third preferred implementation of the second aspect, when the data association unit is running, specifically performs:
[0047] Based on the data table, establish the corresponding materialized view log;
[0048] Create corresponding materialized views;
[0049] Use materialized views to associate the data tables accordingly.
[0050] When obtaining the query instruction, query the associated data table based on the materialized view;
[0051] Get the corresponding query result feedback.
[0052] In conjunction with the fourth preferred implementation of the second aspect, the risk control statistics module specifically includes:
[0053] An instruction acquisition unit, used to acquire real-time risk control instructions;
[0054] A risk control request unit, used to send a risk control statistics request to the risk control engine;
[0055] A wide table sending unit, used to send corresponding data wide table information to the risk control engine;
[0056] A wide table guidance unit is used to issue instructions to the risk control engine so that the risk control engine obtains the corresponding data wide table from the message queue;
[0057] Waiting unit, used to wait for the risk control engine to perform risk control statistics;
[0058] The result acquisition unit is used to obtain real-time risk control results from the risk control engine.
[0059] Compared with the prior art, the present invention has the following beneficial effects:
[0060] 1. The present invention uses a data warehouse to pre-process the data, first converts the real-time synchronous data from different upstream data sources to a single data table, and then associates the different single data tables through the data warehouse to obtain the corresponding wide data table. By pre-processing the data for association query, the risk control engine does not need to associate the data when performing risk control result statistics, which can significantly reduce the complexity of the risk control engine structure, and at the same time significantly improve the data processing efficiency of the risk control engine, thereby improving the real-time nature of the risk control results and meeting the needs of real-time risk control statistics.
[0061] 2. The present invention stores the processed data wide table in the message queue, so that the data warehouse can continue to carry out the next step of data storage and processing. When the risk control engine needs to obtain data, the data can be directly sent through the message queue, making the data acquisition of the risk control engine more flexible and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings, wherein:
[0063] Figure 1 It is a flow chart of the risk control statistics method based on real-time data warehouse for data collection of the present invention;
[0064] Figure 2 It is a schematic diagram of the risk control statistics device based on real-time data warehouse for data collection of the present invention. DETAILED DESCRIPTION
[0065] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0066] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0067] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0068] Example 1
[0069] like Figure 1 The figure is a schematic diagram of the preferred steps of the risk control statistics method based on real-time data warehouse for data collection according to the present invention.
[0070] The embodiment of the present invention discloses a risk control statistics method based on real-time data warehouse for data collection. The implementation of the present invention requires at least a server, an implementation data warehouse and a risk control engine. The server is mainly used to perform background data processing to control the information interaction between the data warehouse and the risk control engine. The embodiment of the present invention mainly includes the following steps:
[0071] Step S1: Acquire upstream data sources, and acquire real-time synchronization data from the upstream data sources respectively.
[0072] Specifically, the server obtains relevant upstream data sources, establishes information connections with the upstream data sources respectively, and then obtains real-time synchronization data from the upstream data sources respectively.
[0073] When applied to vehicle navigation, the upstream data sources are various map applications, navigation programs, and real-time traffic condition monitoring programs. The server obtains the upstream data sources to prepare for the risk control statistics of the risk control engine.
[0074] Step S2: The real-time synchronization data is respectively transmitted to the data preparation area of the data warehouse to be converted into corresponding data tables.
[0075] Specifically, after acquiring the real-time synchronization data, the server transmits the real-time synchronization data to the data warehouse. The data warehouse generally includes the data preparation area (ODS), the data warehouse detail layer (DWD), the data warehouse summary layer (DWS) and the data mart layer (DM). Among them, the data preparation area is used to store data as the source of data processing in the subsequent data warehouse layer.
[0076] Step S3: Transfer the data table to the data warehouse detail layer.
[0077] Specifically, when the data warehouse needs to perform further data processing, the data warehouse detail layer obtains the corresponding data table from the data preparation area. After obtaining the real-time synchronization data, the data preparation area converts the real-time synchronization data accordingly, specifically filling it into the preset ODS table in the data preparation area to convert it into the corresponding data table and store it in the data preparation area.
[0078] Step S4: Obtain a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on the single data table.
[0079] Specifically, after the data tables are associated with each other, they are filled into the preset DWD wide table in the detail layer of the data warehouse respectively to realize the corresponding association query, and the data table is converted into a data wide table to improve the correlation between the data and reduce the data processing volume of the risk control engine.
[0080] The association process of the data wide table specifically includes: obtaining the data single table at the data detail layer; performing associated table queries on the data single tables respectively based on the materialized view function to realize data association of the data single tables; and obtaining the corresponding data wide table.
[0081] The process of querying the associated table of the materialized view specifically includes: establishing a corresponding materialized view log based on a single data table; establishing a corresponding materialized view; making corresponding associations with the single data tables through the materialized view; when obtaining a query instruction, querying the associated single data table based on the materialized view; and obtaining corresponding query result feedback. A materialized view is a physical table. The materialized view is updated regularly through the internal mechanism of Oracle. Generally, some large and time-consuming table connections can be realized through materialized views, thereby improving the efficiency of the query. The materialized view described in the embodiment of the present invention includes a single table aggregate view and a connection view.
[0082] Step S5: forward the data wide table to the message queue.
[0083] Specifically, the server forwards the data wide table to the message queue, stores it and automatically distributes it through the message queue, so that the risk control engine can obtain more timely and accurate data wide table information, while not affecting the continued work of the data warehouse, including the generation of single data tables, the association of single data tables, and the generation of wide data tables, without occupying additional space in the data warehouse.
[0084] Step S6: When obtaining the risk control query instruction, the risk control engine obtains the data wide table from the message queue and performs statistics to obtain real-time risk control results.
[0085] Specifically, it includes: obtaining real-time risk control instructions; issuing risk control statistics requests to the risk control engine; sending corresponding data wide table information to the risk control engine; issuing instructions to the risk control engine to enable the risk control engine to obtain the corresponding data wide table from the message queue; waiting for the risk control engine to perform risk control statistics; and obtaining real-time risk control results from the risk control engine.
[0086] This embodiment preferably also includes:
[0087] Step S7: Back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
[0088] Specifically, the backup in the data warehouse is improved so that when problems occur, a simple backtracking can be performed to re-perform risk control statistics and obtain correct risk control results.
[0089] To sum up, the present invention performs single-table data association before the risk control engine to obtain a wide data table. The risk control engine directly processes and statistics the wide data table with higher correlation, which can significantly reduce the working complexity of the risk control engine and effectively improve the efficiency of the risk control engine to improve real-time performance.
[0090] First, the present invention pre-processes the data by using a data warehouse, first converts the real-time synchronous data from different upstream data sources to a single data table, and then associates different single data tables through the data warehouse to obtain a corresponding wide data table. By pre-processing the data for association query, the risk control engine does not need to associate data when performing risk control result statistics, thereby significantly reducing the complexity of the risk control engine structure, and at the same time significantly improving the data processing efficiency of the risk control engine, thereby improving the real-time nature of the risk control results, and meeting the needs of real-time risk control statistics.
[0091] In addition, the present invention stores the processed data wide table in the message queue, so that the data warehouse can continue to perform the next step of data storage and processing. When the risk control engine needs to obtain data, the data can be directly sent through the message queue, making the data acquisition of the risk control engine more flexible and efficient.
[0092] For other steps of the risk control statistics method based on real-time data warehouse for data collection described in this embodiment, refer to the prior art.
[0093] Example 2
[0094] like Figure 2 As shown, the embodiment of the present invention discloses a risk control statistics device based on real-time data warehouse for data collection, including a data acquisition module M1, a data transmission module M2, a single table transmission module M3, a wide table acquisition module M4, a forwarding queue module M5 and a risk control statistics module M6, wherein:
[0095] The data acquisition module M1 is used to acquire the upstream data source, and acquire the real-time synchronization data from the upstream data source.
[0096] The data delivery module M2 is used to deliver the real-time synchronous data to the data preparation area of the data warehouse to be converted into corresponding data tables.
[0097] The single table transport module M3 is used to transport a single table of data to the data warehouse detail layer.
[0098] The wide table acquisition module M4 is used to acquire a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on a single data table.
[0099] The wide table acquisition module M4 specifically includes a single table acquisition unit, a data association unit and a data wide table unit, as follows:
[0100] A single table acquisition unit is used to enable the data detail layer to acquire a single table of data;
[0101] The data association unit is used to perform associated table queries on the data table based on the materialized view function to achieve data association of the data table. Specifically, when the data association module is executed, the following operations are performed: based on the data table, a corresponding materialized view log is established; a corresponding materialized view is established; the data table is associated with the materialized view; when a query instruction is obtained, the associated data table is queried based on the materialized view; and the corresponding query result feedback is obtained.
[0102] The data wide table unit is used to obtain the corresponding data wide table.
[0103] The forwarding queue module M5 is used to forward the data wide table to the message queue.
[0104] The risk control statistics module M6 is used to enable the risk control engine to obtain a wide table of data from the message queue and perform statistics when obtaining a risk control query instruction, so as to obtain a real-time risk control result.
[0105] The risk control statistics module M6 specifically includes:
[0106] An instruction acquisition unit, used to acquire real-time risk control instructions;
[0107] A risk control request unit, used to send a risk control statistics request to the risk control engine;
[0108] A wide table sending unit, used to send corresponding data wide table information to the risk control engine;
[0109] A wide table guidance unit is used to issue instructions to the risk control engine so that the risk control engine obtains the corresponding data wide table from the message queue;
[0110] Waiting unit, used to wait for the risk control engine to perform risk control statistics;
[0111] The result acquisition unit is used to obtain real-time risk control results from the risk control engine.
[0112] As a preferred implementation, the device in the embodiment of the present invention further includes a backup backtracking module M7, specifically:
[0113] The backup backtracking module is used to back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
[0114] To sum up, when the device described in the embodiment of the present invention is running, all steps of the risk control statistical method based on real-time data warehouse for data collection described in Example 1 can be implemented, so as to realize the conversion of data from different data sources into a single data table in advance through the data warehouse, and then associate several single data tables in sequence to form a wide data table, and then transmit it to the message queue. The risk control engine only needs to obtain the wide data table from the message queue to perform statistics on the risk control results of the wide data table with a high degree of association, thereby efficiently obtaining risk control results with higher real-time performance.
[0115] For other structures of the risk control statistics device based on real-time data warehouse for data collection described in this embodiment, refer to the prior art.
[0116] Example 3
[0117] The present invention also discloses an electronic device, at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor. When the at least one processor executes the instructions, the following steps are specifically implemented: obtaining an upstream data source, and obtaining real-time synchronization data from the upstream data source respectively; delivering the real-time synchronization data to a data preparation area of a data warehouse respectively to be converted into corresponding single data tables; delivering the single data tables to a detail layer of the data warehouse; obtaining a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on the single data table; forwarding the wide data table to a message queue; when obtaining a risk control query instruction, enabling a risk control engine to obtain the wide data table from the message queue and perform statistics to obtain real-time risk control results.
[0118] Example 4
[0119] The present invention also discloses a storage medium storing a computer program. When the computer program is executed by a processor, the following steps are specifically implemented: obtaining an upstream data source, and obtaining real-time synchronization data from the upstream data source respectively; delivering the real-time synchronization data to a data preparation area of a data warehouse respectively to be converted into corresponding single data tables; delivering the single data tables to a detail layer of the data warehouse; obtaining a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on the single data table; forwarding the wide data table to a message queue; and when obtaining a risk control query instruction, enabling a risk control engine to obtain the wide data table from the message queue and perform statistics to obtain real-time risk control results.
[0120] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0121] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0122] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0123] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0124] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0125] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0126] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0127] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the above-mentioned module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes 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 action, or can be implemented with a combination of special hardware and computer instructions.
[0128] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A risk control statistics method based on real-time data warehouse for data collection, characterized in that: The steps include: Obtain the upstream data source, and obtain real-time synchronization data from the upstream data source; The real-time synchronized data is delivered to the data preparation area of the data warehouse to be converted into corresponding data tables; Transport data tables to the detail layer of the data warehouse; Obtaining a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on a single data table; The data association based on the single data table specifically includes: obtaining the single data table at the data detail layer; performing associated table queries on the single data table respectively based on the materialized view function to achieve data association of the single data table; obtaining the corresponding wide data table; Forward the data wide table to the message queue; When obtaining risk control query instructions, the risk control engine obtains the data wide table from the message queue and performs statistics to obtain real-time risk control results; The method of enabling the risk control engine to obtain the wide data table from the message queue and perform statistics specifically includes: obtaining real-time risk control instructions; issuing a risk control statistics request to the risk control engine; sending corresponding wide data table information to the risk control engine; issuing an instruction to the risk control engine to enable the risk control engine to obtain the corresponding wide data table from the message queue; waiting for the risk control engine to perform risk control statistics; and obtaining real-time risk control results from the risk control engine.
2. The risk control statistics method based on real-time data warehouse data collection according to claim 1 is characterized in that: After obtaining the real-time risk control results, it also includes: Back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
3. The risk control statistics method based on real-time data warehouse data collection according to claim 1 is characterized in that: Based on the materialized view function, the associated table query is performed on each data table, specifically including: Based on the data table, establish the corresponding materialized view log; Create corresponding materialized views; Use materialized views to associate the data tables accordingly. When obtaining the query instruction, query the associated data table based on the materialized view; Get the corresponding query result feedback.
4. A risk control statistics device based on real-time data warehouse for data collection, characterized in that: It includes data acquisition module, data transmission module, single table transmission module, wide table acquisition module, forwarding queue module and risk control statistics module, among which: The data acquisition module is used to obtain the upstream data source, and obtain the real-time synchronization data from the upstream data source; The data delivery module is used to deliver the real-time synchronization data to the data preparation area of the data warehouse to convert it into corresponding data tables; The single table transport module is used to transport a single table of data to the detail layer of the data warehouse; The wide table acquisition module is used to acquire a wide data table from the detail layer of the data warehouse, wherein the wide data table is generated after data association is performed based on a single data table; The wide table acquisition module specifically includes: A single table acquisition unit is used to enable the data detail layer to acquire a single table of data; The data association unit is used to perform association table queries on the data tables based on the materialized view function to achieve data association of the data tables; A data wide table unit is used to obtain a corresponding data wide table; The forwarding queue module is used to forward the data wide table to the message queue; The risk control statistics module is used to enable the risk control engine to obtain the data wide table from the message queue and perform statistics when obtaining risk control query instructions, so as to obtain real-time risk control results; The risk control statistics module specifically includes: An instruction acquisition unit, used to acquire real-time risk control instructions; A risk control request unit, used to send a risk control statistics request to the risk control engine; A wide table sending unit, used to send corresponding data wide table information to the risk control engine; A wide table guidance unit is used to issue instructions to the risk control engine so that the risk control engine obtains the corresponding data wide table from the message queue; Waiting unit, used to wait for the risk control engine to perform risk control statistics; The result acquisition unit is used to obtain real-time risk control results from the risk control engine.
5. The risk control statistics device based on real-time data warehouse for data collection according to claim 4 is characterized in that: After obtaining the real-time risk control results, a backup and tracing module is also included, including: The backup backtracking module is used to back up the data wide table and the corresponding real-time risk control results to the data warehouse for backtracking.
6. The risk control statistics device based on real-time data warehouse for data collection according to claim 4 is characterized in that: When the data association unit is running, it specifically executes: Based on the data table, establish the corresponding materialized view log; Create corresponding materialized views; Use materialized views to associate the data tables accordingly. When obtaining the query instruction, query the associated data table based on the materialized view; Get the corresponding query result feedback.
