System, method and computer program product for efficiently linking time series data tables

By generating and sorting the key-value pairs of the time series data table on the processor, and using multiple server nodes for parallel processing and record replication, the problem of inefficient large data table connection is solved and fast and efficient data table connection is achieved.

CN117120995BActive Publication Date: 2024-08-30VISA INTERNATIONAL SERVICE ASSOCIATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280003086.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-08-30
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

The existing technology has low computational efficiency when connecting large data tables, especially when processing time series data and skewed data tables with unequal sizes, resulting in too long total calculation time and affecting system functions.

Method used

By loading a time series data table on at least one processor, generating key-value pairs, sorting and interleaving matching based on timestamps, leveraging multiple server nodes for parallel processing, duplicating records to increase the data table size, and randomly selecting mappers matching to reduce computational memory footprint and improve efficiency.

Benefits of technology

The overall computing time for connecting large data tables has been significantly reduced, and the computing efficiency of data table connection has been improved. For example, transaction data processing was reduced by 17 times within six months, and data processing time was shortened to two days within two years.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117120995B
    Figure CN117120995B
Patent Text Reader

Abstract

A system, method, and computer program product for efficiently connecting time series data tables are described. The method includes loading a first table and a second table into a memory, and generating a set of first key-value pairs based on a set of first time series records and generating a set of second key-value pairs based on a set of second time series records. The method also includes sorting the set of first key-value pairs and the set of second key-value pairs. The method also includes interleaving the set of first key-value pairs with the set of second key-value pairs and matching the sets of time series records in order to form a connection table. The method also includes deleting each corresponding second time series record from at least one memory in response to matching the corresponding first time series record.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to joining and merging data sets and, in non-limiting embodiments or aspects, to systems, methods, and computer program products for efficiently joining tables of time series data. Background Art

[0002] Large data tables may need to be joined together (e.g., a fuzzy join) to allow combined analysis and provide more meaningful insights than can be obtained from just one data table. Joining large tables may involve identifying primary key columns and matching records (e.g., rows) of two data tables based on matching values ​​of the columns and rules for fuzzy joins. For example, a transaction processing system in an electronic payment processing network may need to join data sets of payment authorization and settlement data using multiple fuzzy rules (e.g., matching payment authorization and settlement records even if there is a 10% deviation in the transaction amount) in addition to account numbers. For large data tables (e.g., with millions of records), the join process can be computationally slow and resource intensive. When one or both tables are large, the join operation may take hours, days, or longer.

[0003] The computational inefficiencies of joining large data tables can be particularly severe when such large data tables are populated continuously, e.g., when new data is continuously received over a period of hours, days, etc. This type of data may also be ordered in time as it is continuously generated (e.g., time series records). For example, a transaction processing system in an electronic payment processing network may receive and generate large amounts of transaction data per second, e.g., for purposes of authorizing and settling payment transactions. If a transaction service provider wishes to join such large data tables for analytical purposes, and if the join takes a long time to execute (e.g., the processing of records is slower than the rate at which new data is generated, the time interval for joining is longer than the interval at which data is collected, etc.), it may be difficult to gain meaningful insights from such joins in a timely manner.

[0004] Computational inefficiencies can also be exacerbated if there is substantial variation in the number of records for a particular value in the join column. For example, in an electronic payment processing network, some merchants may have a few hundred transactions in a month, while other merchants may have millions of transactions. This situation is also known as data skew. Using multiple processors to join tables of unequal size can result in some processors performing most of the join process while other processors perform a small portion of the join process. As a result, only part of the join process is effectively parallelized, and the total computation time can be undesirably extended until the overloaded processor finishes processing its larger portion.

[0005] Therefore, there is a need in the art to provide a technical solution for efficient fuzzy and non-fuzzy joining of data tables, including large data tables, time series data tables, and / or skewed data tables of unequal size. It is also necessary to reduce the overall computation time when joining such data tables to improve the functionality of computer systems that rely on such joined data tables. Summary of the invention

[0006] According to some non-limiting embodiments or aspects, systems, methods, and computer program products are provided for efficiently connecting time series data tables that overcome some or all of the deficiencies described above.

[0007] According to some non-limiting embodiments or aspects, a computer-implemented method for effectively connecting time series data tables is provided. The method includes loading a first table and a second table into at least one memory with at least one processor, the first table including a set of first time series records, and the second table including a set of second time series records, each first time series record in the set of first time series records including a first plurality of attributes, and each second time series record in the set of second time series records including a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also includes a corresponding first timestamp for each first time series record, and the second plurality of attributes also includes a corresponding second timestamp for each second time series record. The method also includes generating, with at least one processor, a set of first key-value pairs based on the set of first time series records of the first table and generating a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes. The method also includes sorting, with at least one processor, the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record. The method also includes sorting, with at least one processor, the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record. The method also includes interleaving, with at least one processor, the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record. The method further includes matching, with at least one processor, each corresponding second time series record with a corresponding first time series record in sequence based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding connection record in a connection table. The method further includes deleting, with at least one processor, the corresponding second time series record from the at least one memory in response to matching each corresponding second time series record with the corresponding first time series record.

[0008] In some non-limiting embodiments or aspects, the matching of each corresponding second time series record with the corresponding first time series record may be performed on one of a plurality of server nodes, and each of the plurality of server nodes may execute an independent mapper to match different subsets of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0009] In some non-limiting embodiments or aspects, at least one of the first table and the second table may be skewed. The method may also include replicating each first time series record in the set of first time series records a predetermined number of times with at least one processor and before generating the set of first key-value pairs to generate a plurality of identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times. The matching of each corresponding second time series record with the corresponding first time series record may also include randomly matching each corresponding second time series record with one of the plurality of identical records for the corresponding first time series record.

[0010] In some non-limiting embodiments or aspects, the predetermined number of times each first time series record is replicated may be at least ten times. The number of the plurality of identical records may be the same as the number of the plurality of server nodes. Each identical record in the plurality of identical records may be sent to a different mapper of the plurality of server nodes. The random matching of each corresponding second time series record may also include randomly selecting a mapper of the plurality of server nodes.

[0011] In some non-limiting embodiments or aspects, the set of first time-series records may include a plurality of transaction authorization records processed by a transaction processing system.The set of second time-series records may include a plurality of transaction settlement records processed by the transaction processing system.

[0012] In some non-limiting embodiments or aspects, deleting each respective second time series record from the at least one memory may be performed in real time immediately after each respective second time series record is matched with the respective first time series record.

[0013] According to some non-limiting embodiments or aspects, a system for effectively connecting time series data tables is provided. The system includes at least one server, and the at least one server includes at least one processor. The at least one server is programmed or configured to load a first table and a second table into at least one memory, the first table includes a set of first time series records, and the second table includes a set of second time series records, each first time series record in the set of first time series records includes a first plurality of attributes, and each second time series record in the set of second time series records includes a second plurality of attributes, wherein the first attribute in the first plurality of attributes is of a target type, and the second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also includes a corresponding first timestamp for each first time series record, and the second plurality of attributes also includes a corresponding second timestamp for each second time series record. The at least one server is programmed or configured to generate a set of first key-value pairs based on the set of first time series records of the first table and a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes. The at least one server is programmed or configured to sort the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record. The at least one server is programmed or configured to sort the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record. The at least one server is programmed or configured to interleave the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record. The at least one server is programmed or configured to sequentially match each corresponding second time series record with the corresponding first time series record based on the second key, the corresponding second timestamp, the first key and the corresponding first timestamp to form a corresponding connection record in the connection table. The at least one server is programmed or configured to delete the corresponding second time series record from the at least one memory in response to matching each corresponding second time series record with the corresponding first time series record.

[0014] In some non-limiting embodiments or aspects, the at least one server may include a plurality of server nodes. Matching each respective second time series record with a respective first time series record may be performed on one of the plurality of server nodes. Each of the plurality of server nodes may execute an independent mapper to match a different subset of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0015] In some non-limiting embodiments or aspects, at least one of the first table and the second table may be skewed. The at least one server may also be programmed or configured to replicate each first time series record in the set of first time series records a predetermined number of times before generating the set of first key-value pairs to generate a plurality of identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times. Matching each corresponding second time series record with a corresponding first time series record may also include randomly matching each corresponding second time series record with one of the plurality of identical records for the corresponding first time series record.

[0016] In some non-limiting embodiments or aspects, the predetermined number of times each first time series record is replicated may be at least ten times. The number of the plurality of identical records may be the same as the number of the plurality of server nodes. Each identical record in the plurality of identical records may be sent to a different mapper of the plurality of server nodes. The random matching of each corresponding second time series record may also include randomly selecting a mapper of the plurality of server nodes.

[0017] In some non-limiting embodiments or aspects, the at least one server may be part of a transaction processing system. The set of first time-series records may include a plurality of transaction authorization records processed by the transaction processing system. The set of second time-series records may include a plurality of transaction settlement records processed by the transaction processing system.

[0018] In some non-limiting embodiments or aspects, deleting each respective second time series record from the at least one memory may be performed in real time immediately after each respective second time series record is matched with the respective first time series record.

[0019] According to some non-limiting embodiments or aspects, a computer program product for effectively connecting time series data tables is provided. The computer program product includes at least one non-transient computer-readable medium, the at least one non-transient computer-readable medium including program instructions, the program instructions when executed by at least one processor causing the at least one processor to load a first table and a second table into at least one memory, the first table including a set of first time series records, and the second table including a set of second time series records, each first time series record in the set of first time series records including a first plurality of attributes, and each second time series record in the set of second time series records including a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also includes a corresponding first timestamp for each first time series record, and the second plurality of attributes also includes a corresponding second timestamp for each second time series record. The program instructions also cause the at least one processor to generate a set of first key-value pairs based on the set of first time series records of the first table and a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes. The program instructions also cause the at least one processor to sort the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record. The program instructions also cause the at least one processor to sort the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record. The program instructions also cause the at least one processor to interleave the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record. The program instructions further cause the at least one processor to sequentially match each corresponding second time series record with a corresponding first time series record based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding connection record in a connection table. The program instructions further cause the at least one processor to delete the corresponding second time series record from the at least one memory in response to matching each corresponding second time series record with the corresponding first time series record.

[0020] In some non-limiting embodiments or aspects, the at least one processor may include a plurality of server nodes. Matching each respective second time series record with a respective first time series record may be performed on one of the plurality of server nodes. Each of the plurality of server nodes may execute an independent mapper to match a different subset of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0021] In some non-limiting embodiments or aspects, at least one of the first table and the second table may be skewed. The program instructions may also cause the at least one processor to replicate each first time series record in the set of first time series records a predetermined number of times before generating the set of first key-value pairs to generate a plurality of identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times. Matching each corresponding second time series record with a corresponding first time series record may also include randomly matching each corresponding second time series record with one of the plurality of identical records for the corresponding first time series record.

[0022] In some non-limiting embodiments or aspects, the predetermined number of times each first time series record is replicated may be at least ten times. The number of the plurality of identical records may be the same as the number of the plurality of server nodes. Each identical record in the plurality of identical records may be sent to a different mapper of the plurality of server nodes. The random matching of each corresponding second time series record may also include randomly selecting a mapper of the plurality of server nodes.

[0023] In some non-limiting embodiments or aspects, deleting each respective second time series record from the at least one memory may be performed in real time immediately after each respective second time series record is matched with the respective first time series record.

[0024] Other non-limiting embodiments or aspects are described in the following numbered clauses:

[0025] Clause 1: A computer-implemented method, comprising: loading a first table and a second table into at least one memory with at least one processor, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also include a corresponding first timestamp for each first time series record, and the second plurality of attributes also include a corresponding second timestamp for each second time series record; generating a set of first key-value pairs based on the set of first time series records of the first table and generating a set of second key-value pairs based on the set of second time series records of the second table with at least one processor, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute in the first plurality of attributes, And wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes; using at least one processor to sort the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; using at least one processor to sort the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; using at least one processor to interleave the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; using at least one processor to match each corresponding second time series record with the corresponding first time series record in sequence based on the second key, the corresponding second timestamp, the first key and the corresponding first timestamp to form a corresponding connection record in a connection table; and in response to matching each corresponding second time series record with the corresponding first time series record, using at least one processor to delete the corresponding second time series record from the at least one memory.

[0026] Clause 2: A method according to clause 1, wherein the matching of each corresponding second time series record with the corresponding first time series record is performed on one of a plurality of server nodes, and wherein each of the plurality of server nodes executes an independent mapper to match different subsets of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0027] Clause 3: A method according to clause 1 or clause 2, wherein at least one of the first table and the second table is skewed, and the method further includes: using at least one processor and before generating the set of first key-value pairs, copying each first time series record in the set of first time series records a predetermined number of times to produce multiple identical records for the first time series record, thereby increasing the size of the set of first time series records proportionally to the predetermined number of times; and wherein the matching of each corresponding second time series record with the corresponding first time series record also includes randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record.

[0028] Clause 4: The method of any one of clauses 1 to 3, wherein the predetermined number of times each first time series record is replicated is at least ten times.

[0029] Clause 5: A method according to any one of clauses 1 to 4, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

[0030] Clause 6: A method according to any one of clauses 1 to 5, wherein the set of first time series records includes a plurality of transaction authorization records processed by a transaction processing system, and wherein the set of second time series records includes a plurality of transaction settlement records processed by the transaction processing system.

[0031] Clause 7: A method according to any one of clauses 1 to 6, wherein deleting each corresponding second time series record from the at least one memory is performed in real time immediately after each corresponding second time series record is matched with the corresponding first time series record.

[0032] Clause 8: A system comprising at least one server, the at least one server comprising at least one processor, wherein the at least one server is programmed or configured to: load a first table and a second table into at least one memory, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also include a corresponding first timestamp for each first time series record, and wherein the second plurality of attributes also include a corresponding second timestamp for each second time series record; generate a set of first key-value pairs based on the set of first time series records of the first table and generate a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first attribute based on the first attribute a first key and a first value based on at least one first other attribute in the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute in the second plurality of attributes; sorting the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; sorting the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; interleaving the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; matching each corresponding second time series record with the corresponding first time series record in sequence based on the second key, the corresponding second timestamp, the first key and the corresponding first timestamp to form a corresponding connection record in a connection table; and deleting the corresponding second time series record from the at least one memory in response to matching each corresponding second time series record with the corresponding first time series record.

[0033] Clause 9: A system according to clause 8, wherein the at least one server comprises a plurality of server nodes, wherein matching each corresponding second time series record with a corresponding first time series record is performed on one of the plurality of server nodes, and wherein each of the plurality of server nodes executes an independent mapper to match different subsets of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0034] Clause 10: A system according to clause 8 or clause 9, wherein at least one of the first table and the second table is skewed, and wherein the at least one server is further programmed or configured to: replicate each first time series record in the set of first time series records a predetermined number of times before generating the set of first key-value pairs to produce multiple identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times; and wherein matching each corresponding second time series record with the corresponding first time series record also includes randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record.

[0035] Clause 11: The system of any one of clauses 8 to 10, wherein the predetermined number of times each first time series record is replicated is at least ten times.

[0036] Clause 12: A system according to any one of clauses 8 to 11, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

[0037] Clause 13: A system according to any one of clauses 8 to 12, wherein the at least one server is part of a transaction processing system, wherein the set of first time series records includes a plurality of transaction authorization records processed by the transaction processing system, and wherein the set of second time series records includes a plurality of transaction settlement records processed by the transaction processing system.

[0038] Clause 14: A system according to any one of clauses 8 to 13, wherein deleting each respective second time series record from the at least one memory is performed in real time immediately after the respective second time series record is matched with the respective first time series record.

[0039] Clause 15: A computer program product comprising at least one non-transitory computer-readable medium, the at least one non-transitory computer-readable medium comprising program instructions, the program instructions, when executed by at least one processor, cause the at least one processor to: load a first table and a second table into at least one memory, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes also include a corresponding first timestamp for each first time series record, and wherein the second plurality of attributes also include a corresponding second timestamp for each second time series record; generate a set of first key-value pairs based on the set of first time series records of the first table and generate a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first attribute in the set of first key-value pairs The key-value pairs include a first key based on the first attribute and a first value based on at least one first other attribute in the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute in the second plurality of attributes; sorting the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; sorting the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; interleaving the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; matching each corresponding second time series record with the corresponding first time series record in sequence based on the second key, the corresponding second timestamp, the first key and the corresponding first timestamp to form a corresponding connection record in a connection table; and deleting the corresponding second time series record from the at least one memory in response to matching each corresponding second time series record with the corresponding first time series record.

[0040] Clause 16: A computer program product according to clause 15, wherein the at least one processor includes a plurality of server nodes, wherein matching each corresponding second time series record with a corresponding first time series record is performed on one of the plurality of server nodes, and wherein each of the plurality of server nodes executes an independent mapper to match different subsets of the first time series records in the set of first time series records in parallel with each other of the plurality of server nodes.

[0041] Clause 17: A computer program product according to clause 15 or clause 16, wherein at least one of the first table and the second table is skewed, and wherein the program instructions further cause the at least one processor to: replicate each first time series record in the set of first time series records a predetermined number of times before generating the set of first key-value pairs to produce multiple identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times; and wherein matching each corresponding second time series record with the corresponding first time series record also includes randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record.

[0042] Clause 18: The computer program product of any one of clauses 15 to 17, wherein the predetermined number of times each first time series record is replicated is at least ten times.

[0043] Clause 19: A computer program product according to any one of clauses 15 to 18, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

[0044] Clause 20: A computer program product according to any one of clauses 15 to 19, wherein deleting each respective second time series record from the at least one memory is performed in real time immediately after the respective second time series record is matched with the respective first time series record.

[0045] Clause 21: A computer-implemented method, comprising: loading, with at least one processor, a first table and a second table partially or completely into at least one memory, the first table comprising a set of first records and the second table comprising a set of second records, each first record in the set of first records comprising a first plurality of attributes and each second record in the set of second records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type and a second attribute in the second plurality of attributes is of the target type, and wherein at least one of the first table and the second table is skewed; replicating, with at least one processor, each first record in the set of first records a predetermined number of times to generate a plurality of identical records for the first record, thereby increasing the size of the set of first records in proportion to the predetermined number of times; generating, with at least one processor, a set of first key-value pairs based on the set of first records of the first table and a set of second key-value pairs based on the set of second records of the second table, wherein for each first record, each first key-value pair in the set of first key-value pairs comprises a first attribute based on the first attribute. a key and a first value based on at least one first other attribute in the first plurality of attributes, and wherein for each second record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute in the second plurality of attributes; sorting the set of first key-value pairs based on the first key with at least one processor; sorting the set of second key-value pairs based on the second key with at least one processor; matching each corresponding second record with a corresponding first record based on the second key and the first key with at least one processor to form a corresponding connection record in a connection table, wherein the matching is performed on one of a plurality of server nodes, wherein each of the plurality of server nodes executes an independent mapper to match a different subset of the first records in the set of first records in parallel with each other of the plurality of server nodes, and wherein the matching of each corresponding second record with the corresponding first record also includes randomly matching each corresponding second record with one of the plurality of identical records for the corresponding first record.

[0046] Clause 22: A system comprising at least one server, the at least one server comprising at least one processor, wherein the at least one server is programmed or configured to: partially or completely load a first table and a second table into at least one memory, the first table comprising a set of first records and the second table comprising a set of second records, each first record in the set of first records comprising a first plurality of attributes and each second record in the set of second records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type and a second attribute in the second plurality of attributes is of the target type, and wherein at least one of the first table and the second table is skewed; replicate each first record in the set of first records a predetermined number of times to generate a plurality of identical records for the first record, thereby increasing the size of the set of first records in proportion to the predetermined number of times; generate a set of first key-value pairs based on the set of first records of the first table and generate a set of second key-value pairs based on the set of second records of the second table, wherein for each first record, the set of first key-value pairs each first key-value pair comprises a first key based on the first attribute and a first value based on at least one first other attribute in the first plurality of attributes, and wherein for each second record, each second key-value pair in the set of second key-value pairs comprises a second key based on the second attribute and a second value based on at least one second other attribute in the second plurality of attributes; sorting the set of first key-value pairs based on the first key; sorting the set of second key-value pairs based on the second key; matching each corresponding second record with a corresponding first record based on the second key and the first key to form a corresponding connection record in a connection table, wherein the matching is performed on one of a plurality of server nodes, wherein each of the plurality of server nodes executes an independent mapper to match a different subset of the first records in the set of first records in parallel with each other of the plurality of server nodes, and wherein the matching of each corresponding second record with a corresponding first record also includes randomly matching each corresponding second record with one of the plurality of identical records for the corresponding first record.

[0047] Clause 23: A computer program product comprising at least one non-transitory computer-readable medium, the at least one non-transitory computer-readable medium comprising program instructions, the program instructions, when executed by at least one processor, cause the at least one processor to: partially or completely load a first table and a second table into at least one memory, the first table comprising a set of first records and the second table comprising a set of second records, each first record in the set of first records comprising a first plurality of attributes and each second record in the set of second records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type and a second attribute in the second plurality of attributes is of the target type, and wherein at least one of the first table and the second table is skewed; replicate each first record in the set of first records a predetermined number of times to generate a plurality of identical records for the first record, thereby increasing the size of the set of first records in proportion to the predetermined number of times; generate a set of first key-value pairs based on the set of first records of the first table and generate a set of second key-value pairs based on the set of second records of the second table, wherein for each first records, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute in the first plurality of attributes, and wherein for each second record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute in the second plurality of attributes; sorting the set of first key-value pairs based on the first key; sorting the set of second key-value pairs based on the second key; matching each corresponding second record with a corresponding first record based on the second key and the first key to form a corresponding connection record in a connection table, wherein the matching is performed on one of a plurality of server nodes, wherein each of the plurality of server nodes executes an independent mapper to match a different subset of the first records in the set of first records in parallel with each other of the plurality of server nodes, and wherein the matching of each corresponding second record with the corresponding first record also includes randomly matching each corresponding second record with one of the plurality of identical records for the corresponding first record.

[0048] These and other features and characteristics of the present disclosure, as well as methods of operation and functions of combinations of related structural elements and parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals indicate corresponding parts in the various figures. However, it should be expressly understood that the drawings are for illustration and description purposes only and are not intended as definitions of limitations of the present disclosure. Unless the context clearly dictates otherwise, when used in this specification and claims, the singular forms "a", "an", and "the" include plural referents. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Additional advantages and details of the present disclosure are explained in more detail below with reference to exemplary embodiments shown in the accompanying drawings, in which:

[0050] Figure 1 is a schematic diagram of a system for efficiently connecting data tables according to some non-limiting embodiments or aspects;

[0051] Figure 2 is a diagram of one or more components, devices, and / or systems according to some non-limiting embodiments or aspects;

[0052] Figure 3 is a flow chart of a method for efficiently connecting time series data tables according to some non-limiting embodiments or aspects;

[0053] Figure 4 is a flow chart of a method for efficiently connecting data tables having data skew according to some non-limiting embodiments or aspects;

[0054] Figure 5 is a schematic diagram of a method for efficiently connecting large data tables according to some non-limiting embodiments or aspects;

[0055] Figure 6 is a schematic flow chart of a system and method for efficiently connecting data tables according to some non-limiting embodiments or aspects;

[0056] Figure 7 is a schematic diagram of a method for efficiently connecting data tables having data skew according to some non-limiting embodiments or aspects; and

[0057] Figure 8 is a schematic diagram of a method for efficiently connecting time series data tables according to some non-limiting embodiments or aspects.

[0058] Those skilled in the art will appreciate that any block diagrams herein represent conceptual views of illustrative systems that embody the principles of the inventive subject matter. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocodes, etc. represent various processes that can be substantially represented in a computer-readable medium and executed by a computer or processor, whether or not such a computer or processor is explicitly shown. DETAILED DESCRIPTION

[0059] For the purposes of the following description, the terms "upper," "lower," "right," "left," "vertical," "horizontal," "top," "bottom," "lateral," "longitudinal," and their derivatives shall relate to the non-limiting embodiments or aspects as they are oriented in the accompanying drawings. However, it shall be understood that the non-limiting embodiments or aspects may employ various alternative variations and step sequences, except where expressly specified to the contrary. It shall also be understood that the specific devices and processes shown in the accompanying drawings and described in the following specification are merely exemplary embodiments or aspects. Accordingly, specific dimensions and other physical characteristics relating to the embodiments or aspects disclosed herein shall not be considered limiting.

[0060] The aspects, components, elements, structures, actions, steps, functions, instructions, etc. used herein should not be understood as critical or necessary unless explicitly described as such. Also, as used herein, the article "one" is intended to include one or more items, and can be used interchangeably with "one or more" and "at least one". In addition, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, a combination of related items and unrelated items, etc.), and can be used interchangeably with "one or more" or "at least one". In the case of wishing only one item, the term "one" or similar language is used. Also, as used herein, the term "having" etc. is intended to be an open term. In addition, unless otherwise explicitly stated, the phrase "based on" is intended to mean "based at least in part on".

[0061] Some non-limiting embodiments or aspects are described herein in conjunction with thresholds. As used herein, satisfying a threshold may refer to a value being greater than a threshold, more than a threshold, above a threshold, greater than or equal to a threshold, less than a threshold, less than a threshold, below a threshold, less than or equal to a threshold, equal to a threshold, etc.

[0062] As used herein, the term "acquirer" may refer to an entity that is licensed and / or approved by a transaction service provider to initiate transactions (e.g., payment transactions) using a payment device associated with the transaction service provider. Transactions that may be initiated by an acquirer may include payment transactions (e.g., purchases, original credit transactions (OCTs), account funding transactions (AFTs), etc.). In some non-limiting embodiments or aspects, the acquirer may be a financial institution, such as a bank. As used herein, the term "acquirer system" may refer to one or more computing devices operated by or on behalf of an acquirer, such as a server computer executing one or more software applications.

[0063] As used herein, the term "account identifier" may include one or more primary account numbers (PANs), tokens, or other identifiers associated with a customer account. The term "token" may refer to an identifier used as a replacement or substitute identifier for an original account identifier such as a PAN. An account identifier may be alphanumeric or any combination of characters and / or symbols. A token may be associated with a PAN or other original account identifier in one or more data structures (e.g., one or more databases, etc.) so that the token can be used to conduct transactions without directly using the original account identifier. In some examples, an original account identifier such as a PAN may be associated with multiple tokens for different individuals or purposes.

[0064] As used herein, the term "communication" may refer to the reception, acceptance, transmission, transmission, provision, etc. of data (e.g., information, signals, messages, instructions, commands, etc.). A unit (e.g., a device, a system, a component of a device or system, a combination thereof, and / or the like) communicating with another unit means that the unit is able to directly or indirectly receive information from the other unit and / or send information to the other unit. This may refer to a direct or indirect connection (e.g., a direct communication connection, an indirect communication connection, and / or the like) that is wired and / or wireless in nature. In addition, although the information sent may be modified, processed, relayed, and / or routed between the first unit and the second unit, the two units may also communicate with each other. For example, even if the first unit passively receives information and does not actively send information to the second unit, the first unit may communicate with the second unit. As another example, if at least one intermediate unit processes the information received from the first unit and transmits the processed information to the second unit, the first unit may communicate with the second unit.

[0065] As used herein, the term "computing device" may refer to one or more electronic devices configured to process data. In some examples, a computing device may include necessary components for receiving, processing, and outputting data, such as a processor, a display, a memory, an input device, a network interface, etc. The computing device may be a mobile device. As an example, a mobile device may include a cellular phone (e.g., a smart phone or a standard cellular phone), a portable computer, a wearable device (e.g., a watch, glasses, lenses, clothing, etc.), a personal digital assistant (PDA), and / or other similar devices. The computing device may also be a desktop computer or other form of non-mobile computer. "Application" or "application programming interface" (API) may refer to computer code or other data sorted on a computer-readable medium, which may be executed by a processor to facilitate interaction between software components, such as interaction of a client-side front end and / or a server-side back end for receiving data from a client. "Interface" may refer to a generated display, such as one or more graphical user interfaces (GUIs), with which a user may interact directly or indirectly (e.g., via a keyboard, a mouse, etc.).

[0066] As used herein, the terms "electronic wallet" and "electronic wallet application" refer to one or more electronic devices and / or software applications configured to initiate and / or conduct payment transactions. For example, an electronic wallet may include a mobile device executing an electronic wallet application, and may also include server-side software and / or databases for maintaining and providing transaction data to the mobile device. An "electronic wallet provider" may include an entity that provides and / or maintains electronic wallets for customers, such as Google. Android Apple Samsung And / or other similar electronic payment systems. In some non-limiting examples, the issuing bank may be an electronic wallet provider.

[0067] As used herein, the term "issuer institution" may refer to one or more entities, such as a bank, that provide customers with accounts for conducting transactions (e.g., payment transactions), such as initiating credit and / or debit payments. For example, an issuer institution may provide a customer with an account identifier, such as a PAN, that uniquely identifies one or more accounts associated with the customer. The account identifier may be implemented on a portable financial device, such as a physical financial instrument (e.g., a payment card), and / or may be electronic and used for electronic payments. The term "issuer system" refers to one or more computer devices operated by or on behalf of an issuer institution, such as a server computer that executes one or more software applications. For example, an issuer system may include one or more authorization servers for authorizing transactions.

[0068] As used herein, the term "merchant" may refer to a person or entity that provides goods and / or services, or access to goods and / or services, to a customer based on a transaction, such as a payment transaction. The term "merchant" or "merchant system" may also refer to one or more computer systems operated by or on behalf of a merchant, such as a server computer that executes one or more software applications. As used herein, a "point of sale (POS) system" may refer to one or more computers and / or peripheral devices used by a merchant to conduct payment transactions with customers, including one or more card readers, scanning devices (e.g., code scanners), Communications receiver, near field communications (NFC) receiver, radio frequency identification (RFID) receiver and / or other contactless transceiver or receiver, contact-based receiver, payment terminal, computer, server, input device and / or other similar device that can be used to initiate a payment transaction.

[0069] As used herein, the term "payment device" may refer to a payment card (e.g., a credit or debit card), a gift card, a smart card, smart media, a payroll card, a healthcare card, a wristband, a machine-readable medium containing account information, a key chain device or pendant, an RFID transponder, a retailer discount or membership card, a cellular phone, an electronic wallet mobile application, a PDA, a pager, a security card, a computing device, an access card, a wireless terminal, a transponder, etc. In some non-limiting embodiments or aspects, a payment device may include volatile or non-volatile memory to store information (e.g., an account identifier, an account holder's name, etc.).

[0070] As used herein, the term "payment gateway" may refer to an entity and / or a payment processing system operated by or on behalf of such an entity, which provides payment services (e.g., transaction service provider payment services, payment processing services, etc.) to one or more merchants (e.g., transaction service provider payment services, payment processing services, etc.). The payment service may be associated with the use of a portable financial device managed by a transaction service provider. As used herein, the term "payment gateway system" may refer to one or more computer systems, computer devices, servers, server groups, etc. operated by or on behalf of a payment gateway.

[0071] As used herein, the term "server" may refer to or include one or more computing devices that are operated by or facilitate communication and processing by multiple parties in a network environment such as the Internet, but it should be understood that communication may be facilitated through one or more public or private network environments, and there may be various other arrangements. In addition, multiple computing devices (e.g., servers, POS devices, mobile devices, etc.) that communicate directly or indirectly in a network environment may constitute a "system." As used herein, references to "servers" or "processors" may refer to previously described servers and / or processors, different servers and / or processors, and / or combinations of servers and / or processors that are stated to implement previous steps or functions. For example, as used in the specification and claims, a first server and / or first processor stated to implement a first step or function may refer to the same or different servers and / or processors stated to implement a second step or function.

[0072] As used herein, the term "transaction service provider" may refer to an entity that receives transaction authorization requests from merchants or other entities and, in some cases, provides payment assurance through an agreement between the transaction service provider and the issuer organization. For example, a transaction service provider may include, for example , or any other entity that processes transactions. The term "transaction processing system" may refer to one or more computer systems operated by or on behalf of a transaction service provider, such as a transaction processing server that executes one or more software applications. A transaction processing server may include one or more processors and, in some non-limiting embodiments or aspects, may be operated by or on behalf of a transaction service provider.

[0073] The systems, methods and computer program products described herein provide many technical advantages and improvements in systems for effectively connecting data tables. As described herein, the present disclosure provides techniques for connecting large data tables, including data tables of time series records and data tables of unequal sizes, with higher computational efficiency (e.g., faster and better data distribution for parallel processing, etc.). For example, for two time series data tables, the records can be sorted, interleaved and matched with common key values ​​in, for example, a mapper. Then, transactions can be processed in a streaming manner, for example, in a simplifier function, and once one of the records matches, the record can be released from a memory. This reduces the computational memory occupancy of connecting two time series data tables.

[0074] In addition, in order to connect two tables with data skew, the present disclosure provides a technical solution for improving parallel processing so that the total computing time is reduced. For example, for a smaller table, records can be copied multiple times, and each copied record can be assigned to a separate mapper. Then, by matching the records of the second table with one of the many identical records from one of the mappers, the second larger table can be connected. One of the mappers can be randomly selected for matching the records from the first table with the records from the second table. In this way, it is possible to prevent relying on a mapper (e.g., executed on a server node) to match too many times with the second table in proportion. By further example, when a merchant table (e.g., a relatively small table) is merged with a transaction authorization table (e.g., a relatively large table), some merchant records may be associated with a large number of transactions. By copying merchant records and assigning the copied merchant records to multiple mappers, more than one mapper can be used to match transactions with each merchant. This avoids a mapper from becoming unbalanced, and it will only be used to match too high a proportion because the mapper includes merchant records corresponding to a large number of transactions. The solution described above thus reduces the overall computing time.

[0075] In actual experiments, using the methods described herein has shown significant improvements in computational speed. For example, to join several tables (e.g., authorization data tables, settlement data tables, fraud data tables, and merchant data tables) for transactions processed over a period of more than six months, the described methods reduced the overall computation time by a factor of seventeen. Over a larger period of time, such as over two years, joining the same data tables has shown a thirty-fold increase in computational speed. In other words, if joining billions of transaction data records in multiple tables populated over a two-year period previously took two months, the described methods will improve the process to only two days for the join. This allows for faster analysis and response in other systems that rely on combined data tables.

[0076] Reference now Figure 1 , which is a system 100 for effectively connecting data tables according to some non-limiting embodiments or aspects. Specifically, the system 100 may include a transaction processing system 102, a server cluster 101 including a plurality of server nodes 104, a user device 106, a database 110, and a communication network 108.

[0077] The transaction processing system 102 may include one or more computing devices configured to communicate with the user device 106, the server cluster 101, and / or the database 110, including at least in part through the communication network 108. In some non-limiting embodiments or aspects, the transaction processing system 102 may include the server cluster 101, the user device 106, the database 110, and / or the communication network 108. In some non-limiting embodiments or aspects, the transaction processing system 102 may receive and process transaction authorization requests generated from merchants and / or acquirer systems, thereby continuously (e.g., continuously) populating a transaction authorization data table of the database 110. The transaction processing system 102 may also facilitate settlement of transactions that it continuously processes, thereby continuously populating a transaction settlement data table of the database 110. The transaction processing system 102 may also include a fraud detection system and may maintain a transaction fraud data table of the database 110. The transaction processing system 102 may also maintain merchant data in a merchant data table in the database 110. It should be appreciated that other types of systems besides systems in an electronic payment processing network may be used in conjunction with the techniques described herein for connecting data tables.

[0078] The server cluster 101 may include one or more computing devices, such as multiple server nodes 104, which are configured to communicate with the transaction processing system 102, the user device 106 and / or the database 110, including communicating at least in part via the communication network 108. In order to perform the connection process of two data tables, each server node 104 can be associated with one or more mappers (further described below, also referred to as "mapping functions" or "mapper functions"). Each server node 104 can also be associated with one or more simplifiers (further described below, also referred to as "simplification functions" or "simplifier functions"). The server cluster 101 can receive data input, such as data tables to be connected, and can execute mappers-simplifiers (also referred to as "mapper-simplifier functions" or "MapReduce functions") to connect two or more data tables together. The output result of the mapper-simplifier can be a combined (e.g., connected) data table. The server cluster 101 can be configured for parallel processing, such as Cluster. One or more process steps attributed to server cluster 101 may be performed by one or more server nodes 104 of server cluster 101.

[0079] The user device 106 may include one or more computing devices configured to communicate with the transaction processing system 102, the server cluster 101, and / or the database 110, including communicating at least in part through the communication network 108. A person may use the user device 106 to request to connect two or more data tables. The user device 106 may also receive display data configured to display at least a portion of the results of the combined data table. In addition, the user device 106 may be used to initiate one or more analysis processes based on the combined data table of two or more tables.

[0080] The database 110 may include one or more computing devices, including one or more distributed and networked data repositories, which are configured to communicate with the transaction processing system 102, the server cluster 101 and / or the user device 106, including communicating at least in part through the communication network 108. The database 110 may be configured to store two or more data tables that can be connected according to the method of the present disclosure. The database 110 may also be configured to store the output results of the combined data table. The database 110 may be configured to store the data table in a relational database system. The data table of the database 110 may include a plurality of records (e.g., rows), and the plurality of records include a plurality of attributes (e.g., columns). The time series data table in the database 110 may include a record with an attribute, and the attribute has a date and time type, such as a timestamp. The attribute may include various other types, including Boolean values, text values, categorical values, hash values, numerical values, etc. When two attributes have the same type of value and / or format, the attributes may be considered to have the same type, so the values ​​of the two attributes may be compared and determined whether they are equal. For example, records in two different tables may each have an attribute for a transaction identifier (ID), which may include a unique numeric identifier for identifying a transaction, and the records may then be considered to have the same type of attribute, namely, the transaction ID. While attributes of the same type typically have the same name, attributes of the same type may have different names (e.g., "TRANS_ID" and "TID") but still be compared to identify matching values. A column used to join two tables may be considered to have the same type of attribute for both tables.

[0081] The communication network 108 may include one or more wired and / or wireless networks. For example, the communication network 108 may include a cellular network (e.g., Long Term Evolution). networks, third generation (3G) networks, fourth generation (4G) networks, fifth generation (5G) networks, code division multiple access (CDMA) networks, etc.), public land mobile networks (PLMNs), local area networks (LANs), wide area networks (WANs), metropolitan area networks (MANs), telephone networks (e.g., public switched telephone networks (PSTNs)), private networks, ad hoc networks, mesh networks, beacon networks, intranets, the Internet, fiber-optic-based networks, cloud computing networks, etc., and / or combinations of these or other types of networks.

[0082] Further references Figure 1 , the server cluster 101 can load the first table and the second table (e.g., partially or completely) into at least one memory (e.g., of one or more server nodes 104). The first table can include a set of first time series records, and each first time series record can include a first plurality of attributes. The second table can include a set of second time series records, and each second time series record can include a second plurality of attributes. The first plurality of attributes and the second plurality of attributes can share attributes of the same type (also referred to herein as a "target" type, which can refer to a target attribute for connecting two tables). The first plurality of attributes can also include a timestamp attribute (e.g., a date-time value), such that each first time series record has a corresponding timestamp (e.g., a corresponding first timestamp). The second plurality of attributes can also include a timestamp attribute, such that each second time series record has a corresponding timestamp (e.g., a corresponding second timestamp).

[0083] The server cluster 101 may also generate a set of first key-value pairs based on a set of first time series records of the first table. Each first key-value pair in the set of first key-value pairs may include (for each first time series record) a key based on the attribute of the target type (e.g., a first key) and a value (e.g., a first value) including one or more attributes in the first plurality of attributes. The server cluster 101 may sort the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record (e.g., the key-value pairs of the first time series record are sorted in time order from the earliest to the latest). The server cluster 101 may also generate a set of second key-value pairs based on a set of second time series records of the second table. Each second key-value pair in the set of second key-value pairs may include (for each second time series record) a key based on the attribute of the target type (e.g., a second key) and a value (e.g., a second value) including one or more attributes in the second plurality of attributes. The server cluster 101 may sort the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record (e.g., the key-value pairs of the second time series record are sorted in time order from the earliest to the latest).

[0084] The server cluster 101 may interleave the set of first key-value pairs with the set of second key-value pairs (e.g., combine in groups in an alternating manner) based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record. For example, after being output from the mapper, the combined interleaved set of first key-value pairs and second key-value pairs may be arranged in time order (e.g., descending or ascending order). Figure 8 A schematic example of the interleaving process is further shown.

[0085] The server cluster 101 may match each corresponding second time series record with the corresponding first time series record in order (e.g., in the same order as the above sorting) based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding connection record in the connection table. For example, where the first key and the second key match, and where the corresponding timestamps are within an acceptable time interval and / or time order of each other (e.g., within an hour, within a week, within a month, etc., and / or where the second record has a timestamp that occurs after the timestamp of the first record). As a further example, the second time series record may be a transaction settlement record, and the first time series record may be a transaction authorization record. Matching may be based on a common key (e.g., merchant ID, transaction ID, account ID, etc.), and the settlement record may require a timestamp that is after the authorization record but within a threshold time interval (e.g., within a week, within a month, etc.). Each server node 104 in a plurality of server nodes 104 can execute an independent mapper to match different subsets of the first time series record in the set of time series records in parallel with each other server node 104 in a plurality of server nodes 104. A mapper can refer to a function of receiving input (e.g., table record, <key, value> pair, etc.), processing input (e.g., sorting, arranging, partitioning, etc.) and generating a set of <key, value> pairs as output. A simplifier can refer to a function of receiving output from a mapper and iterating through the value associated with a key and generating zero or more outputs (e.g., connection, counting, simplified lists, etc.). A mapper can be paired with a simplifier in a mapper-simplifier. A mapper-simplifier includes a mapper that performs screening and sorting and a simplifier that performs summary operations. A mapper-simplifier facilitates parallel processing of large data sets by performing tasks in parallel using, for example, a distributed server of a server cluster 101.

[0086] In response to matching each corresponding second time series record with the corresponding time series record, the server cluster 101 can delete the corresponding second time series record from at least one memory. For example, given that the second time series record is not required for matching with subsequent records of the interleaved list of keys, the second time series record can be deleted when the second time series record is embodied in the interleaved list. Once matched, especially before the matching process of all records is completed, deleting the record from the memory will reduce the memory usage of the server cluster 101 for the connection operation (for example, the overall computing storage capacity required). Deleting each corresponding time series record from the memory can be performed in real time immediately after each corresponding second time series record is matched with the corresponding first time series record.

[0087] Some table connections may be skewed. When the number of records of a certain value in the connection attribute changes substantially, the connection is skewed. Tables with unequal connection sizes may cause data skew. Therefore, the server cluster 101 can copy each first time series record in a set of first time series records before generating a set of first key-value pairs to generate multiple identical records for each of the first time series records. Doing so will increase the size of a set of first time series records in proportion to a predetermined number (for example, a set of size x will have a final size of x(y+1) if copied y times). For example, if each first time series record in the first set of first time series records is copied n times (for example, ten times), there may be n+1 copies of the first time series record (for example, eleven copies, including ten copied copies plus one original copy). After copying, matching each corresponding second time series record with the corresponding first time series record may also include randomly matching each corresponding second time series record with a time series record in a plurality of identical records for the corresponding first time series record. The number of times each first time series record is copied may be the same as the number of multiple server nodes 104. One of the plurality of identical records may be sent to a different mapper of the plurality of server nodes, and randomly matching each corresponding second time series record may include randomly selecting a mapper of the plurality of server nodes 104. Figure 7 The process of dealing with data skew is described in further detail.

[0088] Provided as an example Figure 1 In some non-limiting embodiments or aspects, system 100 may include additional devices and / or systems, fewer devices and / or systems, different devices and / or systems, or different Figure 1Devices and / or systems of different arrangements of the devices and / or systems shown. Additionally or alternatively, a set of devices and / or systems (e.g., one or more devices and / or systems) of system 100 can perform one or more functions described as being performed by another set of devices and / or systems of system 100.

[0089] Reference now Figure 2 , a diagram showing example components of an apparatus 200 according to some non-limiting embodiments or aspects. The apparatus 200 may correspond to Figure 1 One or more devices in the transaction processing system 102, server cluster 101, server node 104, user device 106, database 110 and / or communication network 108 shown. In some non-limiting embodiments or aspects, such systems or devices may include at least one device 200 and / or at least one component of device 200. As an example, Figure 2 In some non-limiting embodiments or aspects, the device 200 may include additional components, fewer components, different components, or components in a manner similar to that of the device 200. Figure 2 Additionally or alternatively, one set of components (eg, one or more components) of the device 200 may perform one or more functions described as being performed by another set of components of the device 200.

[0090] like Figure 2 As shown, the device 200 may include a bus 202, a processor 204, a memory 206, a storage component 208, an input component 210, an output component 212, and a communication interface 214. The bus 202 may include components that permit communication between components of the device 200. In some non-limiting embodiments or aspects, the processor 204 may be implemented in hardware, firmware, or a combination of hardware and software. For example, the processor 204 may include a processor (e.g., a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), etc.), a microprocessor, a digital signal processor (DSP), and / or any processing component that can be programmed to perform a function (e.g., a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.). The memory 206 may include a random access memory (RAM), a read-only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, optical memory, etc.) that stores information and / or instructions for use by the processor 204.

[0091] Continue to refer Figure 2, the storage component 208 may store information and / or software related to the operation and use of the device 200. For example, the storage component 208 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optical disk, a solid-state disk, etc.) and / or another type of computer-readable medium. The input component 210 may include a component that allows the device 200 to receive information, for example, via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, a microphone, etc.). In addition or alternatively, the input component 210 may include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, an actuator, etc.). The output component 212 may include a component that provides output information from the device 200 (e.g., a display, a speaker, one or more light-emitting diodes (LEDs), etc.). The communication interface 214 may include a transceiver-type component (e.g., a transceiver, a separate receiver and transmitter, etc.), which enables the device 200 to communicate with other devices, for example, via a wired connection, a wireless connection, or a combination of a wired connection and a wireless connection. The communication interface 214 may permit the device 200 to receive information from another device and / or provide information to another device. For example, the communication interface 214 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, Interface, cellular network interface, etc.

[0092] Device 200 can perform one or more processes described herein. Device 200 can perform these processes based on processor 204 executing software instructions stored by computer-readable media such as memory 206 and / or storage component 208. Computer-readable media may include any non-transient memory device. The memory device includes a memory space located within a single physical storage device or a memory space extended across multiple physical storage devices. Software instructions can be read from another computer-readable medium or from another device to memory 206 and / or storage component 208 via communication interface 214. When executed, the software instructions stored in memory 206 and / or storage component 208 can cause processor 204 to perform one or more processes described herein. In addition or alternatively, hard-wired circuit systems can be used instead of or in combination with software instructions to perform one or more processes described herein. Therefore, the embodiments or aspects described herein are not limited to any specific combination of hardware circuits and software. The term "programmed or configured" used herein refers to the arrangement of software, hardware circuit systems, or any combination thereof on one or more devices.

[0093] Reference now Figure 3, a flowchart of a method 300 for effectively connecting time series data tables according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 300 may be performed by one or more processors of the server cluster 101, the transaction processing system 102, and / or another computing device. One or more steps performed by the first processor may be performed by the same or different processors. Figure 3 The steps shown are for example purposes only. It should be understood that in non-limiting embodiments or aspects, nearby, fewer, different and / or different order steps can be used.

[0094] In step 302, the first table and the second table may be loaded (e.g., partially or completely) into at least one memory. For example, the server cluster 101 may load the first table and the second table into at least one memory (e.g., of one or more server nodes 104). The first table may include a set of first time series records (e.g., transaction authorization records of authorization requests for transactions processed by the transaction processing system 102), and the second table may include a set of second time series records (e.g., transaction settlement records of settlement requests for transactions processed by the transaction processing system 102). Each first time series record may include a first plurality of attributes, and each second time series record may include a second plurality of attributes. The first plurality of attributes and the second plurality of attributes have attributes of the same or different types. A first attribute in the first plurality of attributes may have a target type (e.g., a type intended to be used as a key), and a second attribute in the plurality of attributes may have a target type. The first plurality of attributes may also include a corresponding first timestamp for each first time series record, and the second plurality of attributes may also include a corresponding second timestamp for each time series record.

[0095] In step 304, a set of first key-value pairs and a set of second key-value pairs may be generated. For example, the server cluster 101 may generate a set of first key-value pairs based on a set of first time series records of the first table and a set of second key-value pairs based on a set of second time series records of the second table. For each corresponding first time series record, each first key-value pair may include a first key based on a first attribute of the target type and a first value based on one or more other first attributes of the first plurality of attributes. For each corresponding second time series record, each second key-value pair may include a second key based on a second attribute of the target type and a second value based on one or more other second attributes of the second plurality of attributes.

[0096] In step 306, the set of first key-value pairs may be sorted. For example, the server cluster 101 may sort the set of first key-value pairs based on the first key and the corresponding first timestamp of each second time series record. As a further example, the sorting may be performed first on the key and then on the timestamp, first on the timestamp and then on the key, or any combination thereof.

[0097] In step 308, the set of second key-value pairs may be sorted. For example, the server cluster 101 may sort the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record. As a further example, the sorting may be performed first on the key and then on the timestamp, first on the timestamp and then on the key, or any combination thereof.

[0098] In step 310, a set of first key-value pairs may be interleaved with a set of second key-value pairs. For example, the server cluster 101 may interleave the set of first key-value pairs with the set of second key-value pairs based on a corresponding first timestamp of each first time series record and a corresponding second timestamp of each second time series record.

[0099] In step 312, each corresponding second time series record can be matched with a corresponding first time series record. For example, the server cluster 101 can match each corresponding second time series record with a corresponding first time series record in sequence based on a second key, a corresponding second timestamp, a first key, and a corresponding first timestamp to form a corresponding connection record in a connection table. By further example, a connection record can be a result of matching a key of a corresponding key-value pair, and can be based on a time interval between timestamps of corresponding records within a predetermined threshold. Matching each corresponding second time series record with a corresponding first time series record can be performed on one of a plurality of server nodes 104 of the server cluster 101. Each node 104 of the server cluster 101 can execute an independent mapper to match different subsets of the first time series records in the set of first time series records in parallel with each other server node 104 of the server cluster 101.

[0100] In step 314, each corresponding second time series record may be deleted from the memory. For example, in response to matching each corresponding second time series record with the corresponding first time series record, the server cluster 101 may delete the corresponding time series record from at least one memory. The deletion may be performed in real time immediately (immediately after) each corresponding second time series record is matched with the corresponding first time series record.

[0101] Reference now Figure 4, a flowchart of a method 400 for efficiently connecting data tables of unequal sizes according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 400 may be executed by one or more processors of the server cluster 101, the transaction processing system 102, and / or other computing devices. One or more steps performed by the first processor may be performed by the same or different processors. Figure 4 The steps shown are for example purposes only. It should be understood that in non-limiting embodiments or aspects, nearby, fewer, different and / or different order steps can be used.

[0102] In the implementation of the above Figure 3 After the described step 302, step 402 may include replicating each first time series record a predetermined number of times. For example, the server cluster 101 may replicate each first time series record in the set of first time series records a predetermined number of times (e.g., two times, five times, ten times, etc.) before generating the set of first key-value pairs in step 304 to generate a plurality of identical records for the first time series record, thereby increasing the size of the set of first time series records in proportion to the predetermined number of times. The predetermined number of times each time series record is replicated may be the same as the number of the plurality of server nodes 104. Each of the plurality of identical records may be sent to a different mapper of the plurality of server nodes 104.

[0103] After generating the set of first key-value pairs and the set of second key-value pairs in step 304, the server cluster 101 may match each corresponding second time series record with the corresponding first time series record in step 310. In sub-step 404, the matching may include randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record. Randomly matching each corresponding second time series record may also include randomly selecting a mapper of a plurality of server nodes 104, the plurality of server nodes having a mapper of one identical record among the identical records of the corresponding first time series record. It should also be understood that in combination Figure 3 Steps 306 and 308 described may be performed in Figure 4 The depicted steps 304 and 310 are performed between them.

[0104] Reference now Figure 5, a schematic diagram of a method 500 for effectively connecting data tables according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 500 can be performed by one or more processors of a server cluster 101, a transaction processing system 102, and / or another computing device. As shown, the method described herein for connecting two tables can be performed multiple times to connect more than two tables. For example, multiple individual tables 502 can be connected to a composite table 504 by connecting a first pair of individual tables 502 and connecting additional individual tables 502 in sequence. By further example, when the present disclosure is implemented in an electronic payment processing network, the first individual table 502 can be a transaction authorization record table, the second individual table 502 can be a transaction settlement record table, the third individual table 502 can be a transaction fraud record table, and the fourth individual table 502 can be a merchant record table. It should be understood that many configurations and environments are possible.

[0105] Reference now Figure 6 , a schematic flow chart of a method 600 for efficiently connecting data tables according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 600 may be performed by one or more processors of the server cluster 101, the transaction processing system 102, the database 110, and / or other computing devices. One or more steps performed by the first processor may be performed by the same or different processors. The method 600 may be referred to herein as executing a mapper-simplifier for connecting two or more tables.

[0106] Input data 602 for a mapper-simplifier may initially be received. The input data 602 may include at least one table. The input data 602 may be divided into distributed data 604 and may be sent to a distributed file system (DFS) 606. For example, the distributed data 604 may be sent to the server nodes 104 of the server cluster 101 respectively. A mapper 608 (e.g., one mapper per set of distributed data 604) may read the distributed data 604, add tags to distinguish between different tables, and output a key-value pair. The key of the key-value pair may be an attribute of a record of a connected table, and the value of the key-value pair may include the remaining attributes of the record.

[0107] The output of the mapper 608 may be shuffled (e.g., rearranged by data transfer) to be input to a reducer 610 (e.g., one reducer per set of distributed data 604). The reducer 610 may receive key-value pairs for a key, aggregate the values ​​for the key, and produce a connected output. The output of the reducer 610 may be a separate processing result 612, which may be aggregated to receive the final output of the mapper-reducer.

[0108] Reference now Figure 7, a schematic diagram of a method 700 for effectively connecting data tables with data skew according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 700 may be executed by one or more processors of the server cluster 101, the transaction processing system 102, the database 110, and / or other computing devices. One or more steps executed by the first processor may be executed by the same or different processors.

[0109] As shown, the connection of the two tables may include a smaller table 710 and a larger skewed table 708. In order to prevent data skew problems, the server cluster 101 may replicate each record of the smaller table 710 a predetermined number of times before generating the set of first key-value pairs to generate multiple identical records for each record, thereby increasing the size of a set of records from the smaller table 710 in proportion to the predetermined number of times. Each record in the multiple identical records may be assigned to a different mapper, such as one or more of the multiple mappers 702a, 702b, 702c, 702d, 702n. Matching the records of the larger table 708 with the records of the smaller table 710 may include matching each record in the larger table 708 with one of the multiple identical records from one of the mappers 702a, 702b, 702c, 702d, 702n. The mappers 702a, 702b, 702c, 702d, 702n may each correspond to a server node 104 of the server cluster 101.

[0110] Reference now Figure 8 , a schematic diagram of a method 800 for effectively connecting time series data tables according to some non-limiting embodiments or aspects of the present disclosure is shown. The method 800 may be executed by one or more processors of the server cluster 101, the transaction processing system 102, the database 110, and / or other computing devices. One or more steps executed by the first processor may be executed by the same or different processors.

[0111] As shown, a group of second key-value pairs 802, 804, 806 have been sorted, just as a group of first key-value pairs 822, 824, 826. After sorting, each group of key-value pairs can be interleaved. Interleaving can be based on the corresponding timestamps of the records corresponding to each key-value pair. For example, as shown, the timestamps of the key-value pairs can be sorted in chronological order, as follows: 802, 804, 822, 824, 806 and 826. This allows the corresponding time series records to be matched by traversing the interleaved key-value pairs in order to find the matching between the second key-value pair and the first key-value pair. For example, according to the key in each pair and based on the timestamp of the corresponding key-value pair being close enough in time (for example, within a day, within a week, etc.), the second key-value pair 802 can correspond to the first key-value pair 822. The second key-value pair 804 can also correspond to the first key-value pair 824, and the second key-value pair 806 can correspond to the first key-value pair 826. Based on the correspondence between the second key-value pairs 802, 804, 806 and the first key-value pairs 822, 824, 826 in the interleaved group, the corresponding time series records associated with the key-value pairs can be matched in sequential order. Once a match is made, at least one time series record associated with the matched set of key-value pairs can be deleted from the memory to reduce the total memory required for the connection.

[0112] With further reference to the foregoing figures, several computational and speed improvements may be combined to support a basic join of two or more tables. In some non-limiting embodiments or aspects, a simplified side join based on the MapReduce framework (described above) may be employed to allow scalability in joining large data tables. Figure 6 This is described in further detail.

[0113] In some non-limiting embodiments or aspects, multi-format input processing can be implemented to directly read files from an input table. This can include a combined file reader that merges small input files together, which reduces the number of mappers (thereby reducing computational overhead) and reduces skew between mappers. This can also include handling multiple architectures, such as by using multiple Parquet reader. Parquet is a data format for columnar data. Parquet files can be read directly by mappers to handle partitioning logic. Additionally, Parquet files can be processed using flat data structures to further reduce memory footprint.

[0114] In some non-limiting embodiments or aspects, a customized lightweight Parquet data structure may be used. This may include last-in-first-out projection and selection handled by the Parquet file reader, which can reduce input-output processing and improve read performance. The last-in-first-out projection may include projecting multiple attributes (e.g., about 100 fields in a larger domain of about 1000 fields), selecting, and joining two tables. The last-in-first-out selection may include joining the corresponding tables, selecting attributes from the corresponding tables, and individually projecting (e.g., projecting about 10 fields from a larger domain of about 100 fields, and projecting about 100 fields from a larger domain of about 1000 fields).

[0115] In some non-limiting embodiments or aspects, a data skew processing method may be employed, such as Figure 7 The method 700 is shown. In addition, a streaming connection method may be used, such as Figure 8 Method 800 is shown.

[0116] In some non-limiting embodiments or aspects, user-defined functions may be performed in conjunction with other techniques. These user-defined functions may be entered at the user device and stored in the database 110. In some non-limiting embodiments or aspects, in order to connect tables related to transactions processed in the electronic payment processing network, rejected transactions may be skipped when connecting authorization records and settlement records. This further increases the speed of the overall connection.

[0117] In some non-limiting embodiments or aspects, when joining multiple tables of different sizes, the smaller tables may be joined first to prevent slowdowns caused by joining the smaller tables after the size of the combined table has been increased by the previous joins. In some non-limiting embodiments or aspects, data compression may be performed on the final output (e.g., the combined table) to save computing resources when sending the results over the communication network 108.

[0118] In some non-limiting embodiments or aspects, a combined table may be stored in a memory, and instead of regenerating the table each time one of the included tables receives new data, an incremental table (e.g., a table of records indicating new / changed data) may be appended to the combined table to capture changes in the underlying data. For example, the combined table may include a version field, and for each additional incremental table, the version number field may be incremented for the records of the additional incremental table. For records of the incremental table that match records of the combined table, the newer version number field may be referenced to manually or automatically update old records with old version numbers. Alternatively or in addition, the incremental table may be stored separately from the combined table and updated separately. When the combined table is referenced, the incremental table may be merged with the combined table in real time. In this way, there is no need to constantly update a larger combined table, which reduces computing resources used to capture changes in the underlying data.

[0119] With further reference to the aforementioned figures, an "electronic payment processing network" may refer to a plurality of computing devices that send and / or receive communications between one or more entities to process the transfer of monetary funds to one or more transactions. The electronic payment processing network may include merchant systems, acquirer systems, transaction service providers, and issuer systems.

[0120] Although the present disclosure has been described in detail based on what are currently considered to be the most practical and preferred embodiments or aspects for purposes of illustration, it should be understood that such details are only for that purpose and that the present disclosure is not limited to the disclosed embodiments or aspects, but on the contrary, is intended to cover modifications and equivalent arrangements within the spirit and scope of the appended claims. For example, it should be understood that the present disclosure contemplates that, to the extent possible, one or more features of any embodiment or aspect may be combined with one or more features of any other embodiment or aspect, and that one or more steps may be taken in an order different from that presented in the present disclosure.

Claims

1. A computer-implemented method comprising: Loading a first table and a second table into at least one memory with at least one processor, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes further comprises a corresponding first timestamp for each first time series record, and the second plurality of attributes further comprises a corresponding second timestamp for each second time series record; generating, with at least one processor, a set of first key-value pairs based on the set of first time series records of the first table and a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes; sorting, with at least one processor, the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; sorting, with at least one processor, the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; interleaving, with at least one processor, the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; matching, with at least one processor, each corresponding second time series record with a corresponding first time series record in sequence based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding join record in a join table; as well as In response to matching each respective second time series record with the respective first time series record, deleting, with at least one processor, the respective second time series record from the at least one memory; wherein said matching of each respective second time series record to a respective first time series record is performed on one of a plurality of server nodes, and wherein each of said plurality of server nodes executes an independent mapper to match a different subset of first time series records in said set of first time series records in parallel with each other of said plurality of server nodes; wherein at least one of the first table and the second table is skewed, the method further comprising: using at least one processor and prior to generating the set of first key-value pairs, replicating each first time series record in the set of first time series records a predetermined number of times to generate a plurality of identical records for the first time series records, thereby increasing a size of the set of first time series records in proportion to the predetermined number of times; and The matching of each corresponding second time series record with the corresponding first time series record further comprises randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record. 2 . The method according to claim 1 , wherein the predetermined number of times each first time series record is replicated is at least ten times.

3. The method according to claim 1, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

4. The method of claim 1, wherein the set of first time-series records comprises a plurality of transaction authorization records processed by a transaction processing system, and wherein the set of second time-series records comprises a plurality of transaction settlement records processed by the transaction processing system.

5. The method of claim 1, wherein deleting each corresponding second time series record from the at least one memory is performed in real time immediately after each corresponding second time series record is matched with the corresponding first time series record.

6. A system comprising at least one server, the at least one server comprising at least one processor, wherein the at least one server is programmed or configured to: Loading a first table and a second table into at least one memory, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes further comprises a corresponding first timestamp for each first time series record, and the second plurality of attributes further comprises a corresponding second timestamp for each second time series record; generating a set of first key-value pairs based on the set of first time series records of the first table and generating a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes; sorting the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; sorting the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; interleaving the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; sequentially matching each corresponding second time series record with a corresponding first time series record based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding connection record in a connection table; as well as In response to matching each respective second time series record with the respective first time series record, deleting the respective second time series record from the at least one memory; wherein the at least one server comprises a plurality of server nodes, wherein matching each respective second time series record with a respective first time series record is performed on one of the plurality of server nodes, and wherein each of the plurality of server nodes executes an independent mapper to match a different subset of first time series records in the set of first time series records in parallel with each other of the plurality of server nodes; wherein at least one of the first table and the second table is skewed, and wherein the at least one server is further programmed or configured to: before generating the set of first key-value pairs, copying each first time series record in the set of first time series records a predetermined number of times to produce a plurality of identical records for the first time series records, thereby increasing a size of the set of first time series records in proportion to the predetermined number of times; and The matching of each corresponding second time series record with the corresponding first time series record further comprises randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record.

7. The system of claim 6, wherein the predetermined number of times each first time series record is replicated is at least ten times.

8. A system according to claim 6, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

9. A system according to claim 6, wherein the at least one server is part of a transaction processing system, wherein the set of first time series records includes a plurality of transaction authorization records processed by the transaction processing system, and wherein the set of second time series records includes a plurality of transaction settlement records processed by the transaction processing system.

10. The system of claim 6, wherein deleting each respective second time series record from the at least one memory is performed in real time immediately after the each respective second time series record is matched with the respective first time series record.

11. A computer program product comprising at least one non-transitory computer readable medium, the at least one non-transitory computer readable medium comprising program instructions that, when executed by at least one processor, cause the at least one processor to: Loading a first table and a second table into at least one memory, the first table comprising a set of first time series records, and the second table comprising a set of second time series records, each first time series record in the set of first time series records comprising a first plurality of attributes, and each second time series record in the set of second time series records comprising a second plurality of attributes, wherein a first attribute in the first plurality of attributes is of a target type, and a second attribute in the second plurality of attributes is of the target type, and wherein the first plurality of attributes further comprises a corresponding first timestamp for each first time series record, and the second plurality of attributes further comprises a corresponding second timestamp for each second time series record; generating a set of first key-value pairs based on the set of first time series records of the first table and generating a set of second key-value pairs based on the set of second time series records of the second table, wherein for each first time series record, each first key-value pair in the set of first key-value pairs includes a first key based on the first attribute and a first value based on at least one first other attribute of the first plurality of attributes, and wherein for each second time series record, each second key-value pair in the set of second key-value pairs includes a second key based on the second attribute and a second value based on at least one second other attribute of the second plurality of attributes; sorting the set of first key-value pairs based on the first key and the corresponding first timestamp of each first time series record; sorting the set of second key-value pairs based on the second key and the corresponding second timestamp of each second time series record; interleaving the set of first key-value pairs with the set of second key-value pairs based on the corresponding first timestamp of each first time series record and the corresponding second timestamp of each second time series record; sequentially matching each corresponding second time series record with a corresponding first time series record based on the second key, the corresponding second timestamp, the first key, and the corresponding first timestamp to form a corresponding connection record in a connection table; as well as In response to matching each respective second time series record with the respective first time series record, deleting the respective second time series record from the at least one memory; wherein the at least one processor comprises a plurality of server nodes, wherein matching each respective second time series record with a respective first time series record is performed on one of the plurality of server nodes, and wherein each of the plurality of server nodes executes an independent mapper to match a different subset of first time series records in the set of first time series records in parallel with each other of the plurality of server nodes; wherein at least one of the first table and the second table is skewed, and wherein the program instructions further cause the at least one processor to: before generating the set of first key-value pairs, copying each first time series record in the set of first time series records a predetermined number of times to produce a plurality of identical records for the first time series records, thereby increasing a size of the set of first time series records in proportion to the predetermined number of times; and The matching of each corresponding second time series record with the corresponding first time series record further comprises randomly matching each corresponding second time series record with one of the multiple identical records for the corresponding first time series record.

12. The computer program product of claim 11, wherein the predetermined number of times each first time series record is replicated is at least ten times.

13. A computer program product according to claim 11, wherein the number of the multiple identical records is the same as the number of the multiple server nodes, wherein each of the multiple identical records is sent to a different mapper of the multiple server nodes, and wherein the random matching of each corresponding second time series record also includes randomly selecting a mapper of the multiple server nodes.

14. The computer program product of claim 11, wherein deleting each respective second time series record from the at least one memory is performed in real time immediately after the each respective second time series record is matched with the respective first time series record.

Citation Information

Patent Citations

  • Method and device for establishing NoSQL database index for semi-structured data

    CN104794123A

  • Rapid comparison method and device

    CN106855862A