Data aggregation system

By receiving and processing changed data in the computer system, determining the conflict location and sending only conflict-free data areas, and using write-once and non-destructive deletion for data aggregation, the data aggregation performance and scalability in the existing technology are solved. Insufficient problems are solved and efficient data aggregation and storage management are achieved.

CN118575166APending Publication Date: 2024-08-30INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380019697.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-02
Filing Date
2023-01-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing data aggregation methods have performance bottlenecks when processing large amounts of data, especially limitations in atomicity and scalability, and current methods require frequent individual operation data manipulation, resulting in high memory management overhead and execution on disk. Removing deleted data becomes expensive.

Method used

By receiving changed data in a computer system formatted as a byte sequence, stored in add buffers and delete buffers, and determining conflict locations when the data is applied to the target, only sending conflict-free data areas, using write-once Perform data aggregation through non-destructive deletion, and use the checkpoint mechanism to manage data consistency.

Benefits of technology

Improves the performance and scalability of data aggregation, reduces memory requirements, avoids data manipulation for individual operations, reduces system overhead, and uses disk during the aggregation process to provide the desired performance level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575166A
    Figure CN118575166A
Patent Text Reader

Abstract

A computer-implemented method aggregates change data. The changed data formatted in a sequence of bytes is received, the sequence of bytes being used by a target of the changed data. In response to the change data being used for the add operation, the change data is stored in a region in an add buffer in the buffer system. In response to the change data being used for the deletion operation, it is determined whether there is a conflict between the change data and the change data stored in the add buffer. In response to the presence of a conflict, a conflict location of the region is stored in an add buffer containing stored change data corresponding to the conflict. In response to the change data being applied to the target, the change data stored in the region of the set in which there is no conflict in the add buffer is transmitted to the target.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to improved computer systems, and more particularly to methods, apparatus, computer systems, and computer program products for large-scale data aggregation. Background Art

[0002] Databases, distributed data processing frameworks, and file formats have the highest performance when loading, inserting, or formatting data in batches. This type of performance can be found in columnar databases, distributed file systems, Parquet data formats, event repositories, and many other types of systems used as formats for data operations. The data to be placed into these batch-oriented targets can be in the form of small, frequent transactions. These transactions are aggregated into a format that is optimal for these targets. Therefore, software is used to aggregate these high-frequency messages into an optimal format for batch or batch-optimized targets. Batches and batches are techniques for optimizing a unit or group of work. Batch-optimized targets are optimized to process work groups. Batch-optimized targets have improved performance when processing work in groups. Batch-optimized targets have improved performance when processing large amounts of data. Summary of the invention

[0003] According to an illustrative embodiment, a computer-implemented method aggregates change data. A computer system receives change data formatted in a byte sequence that is used by a target of the change data. The computer system stores the change data in an area in an add buffer in a buffer system in response to the change data being used for an add operation. The computer system determines whether there is a conflict between the change data and the change data stored in the add buffer in response to the change data being used for a delete operation. The computer system stores the conflict position of the area in the add buffer in response to the existence of the conflict, and the add buffer contains the stored change data corresponding to the conflict. When the change data is to be applied to the target, the computer system sends the change data stored in the area of ​​the set in the add buffer where there is no conflict to the target. According to other illustrative embodiments, a computer system and a computer program product for aggregating change data are provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] FIG1 is a pictorial representation of a network of data processing systems in which the illustrative embodiments may be implemented;

[0005] FIG2 is a block diagram of a data aggregation environment according to an illustrative embodiment;

[0006] FIG3 is a data flow for aggregating change data according to an illustrative embodiment;

[0007] FIG4 is an index according to an illustrative embodiment;

[0008] 5 is a flow chart of a process for aggregating change data in accordance with an illustrative embodiment;

[0009] 6 is a flow chart of a process for sending stored change data in accordance with an illustrative embodiment;

[0010] 7 is a flow diagram of a process for sending aggregate change data in accordance with an illustrative embodiment;

[0011] 8 is a flow chart of a process for determining whether a conflict exists in accordance with an illustrative embodiment;

[0012] FIG. 9 is a flow diagram of a process for aggregating change data in accordance with an illustrative embodiment;

[0013] FIG10 is a flow chart of a process for checkpointing in accordance with an illustrative embodiment;

[0014] 11 is a flow diagram of a process for sending stored change data using checkpoints according to an illustrative embodiment; and

[0015] FIG. 12 is a block diagram of a data processing system in accordance with an illustrative embodiment. DETAILED DESCRIPTION

[0016] The present invention may be a system, method and / or computer program product at any possible level of technical detail integration. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present invention.

[0017] A computer-readable storage medium may be a tangible device that can retain and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punched card or a raised structure in a groove on which instructions are recorded), and any suitable combination of the foregoing. As used herein, a computer-readable storage medium should not be interpreted as a temporary signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0018] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium within the corresponding computing / processing device.

[0019] The computer-readable program instructions for performing the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data of an integrated circuit, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, and procedural programming languages ​​such as "C" programming language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) may execute computer-readable program instructions to personalize the electronic circuits by utilizing the state information of the computer-readable program instructions so as to perform various aspects of the present invention.

[0020] Various aspects of the present invention are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each frame of the flowchart illustration and / or block diagram and the combination of frames in the flowchart illustration and / or block diagram can be implemented by computer-readable program instructions.

[0021] These computer-readable program instructions can be provided to a processor of a computer or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other equipment to function in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0022] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0023] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each frame in the flow chart or block diagram may represent a part of a module, segment or instruction, which includes one or more executable instructions for realizing the specified logical function. In some alternative embodiments, the function indicated in the frame may not occur in the order indicated in the figure. For example, the two frames shown in succession can actually be implemented as a step, and are executed simultaneously, substantially simultaneously, in a partially or completely time-overlapping manner, or the frame can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each frame of the block diagram and / or flow chart illustration and the combination of the frames in the block diagram and / or flow chart illustration can be implemented by a dedicated hardware-based system that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.

[0024] The illustrative embodiments recognize and take into account many different considerations. For example, the illustrative embodiments recognize and take into account that current aggregation methods involve storing individual messages for transactions in memory until a threshold is reached. A message is a communication containing changes made on a source to be applied to a target object. A transaction is a group of changes to a target object. Individual transactions or groups thereof are typically applied to a target object atomically. In other words, each transaction can be applied atomically.

[0025] When a threshold is reached, the cumulative volume is applied. Additional efficiency can be gained by making the batch a "net effect" application of the data. In other words, if a row is to be added and subsequently removed within the same batch, neither of these operations are applied to the target. The illustrative embodiments recognize and take into account that a net effect can be approached by comparing the rows to be deleted to the rows that have already been added in the target. The method can be performed by hashing the keys or values ​​to improve the efficiency of conflict determination, and if there is a conflict, removing the delete and adding the row objects. Update operations can be represented as a sequence of delete and add pairs.

[0026] The illustrative embodiments recognize and take into account that current approaches have limitations in terms of atomicity as well as performance and scalability. For example, with respect to atomicity, the illustrative embodiments recognize and take into account that in order to ensure that the end goal sees consistent data, the aggregation of transactions is applied across transaction boundaries. At each consistency point, a decision can be made as to whether to apply the aggregated data to the target object. The consistency point may be referred to as a consistency point and may be, for example, a transaction boundary. The determination may be whether there is enough data to be worth committing for processing. If a decision is made not to apply the aggregated data, operations such as deletes and adds are not processed until the next transaction boundary is seen. This delay may be performed to improve performance when changes are made to the target object.

[0027] The decision to continue accumulating transactions may be incorrect because the size of transactions may vary greatly. For example, additional transactions may exceed the target limit on transaction size. Additional transactions may be of such a size that it is preferred from a latency perspective to have previously accumulated change data of previous transactions sent to the target. Once new transactions begin to be added to the buffer, as the process deletes and adds data within the buffer using multiple writes and deletes, the operations in the new transaction cannot be undone because the new transaction deletes may remove information about the previous state.

[0028] Regarding performance scalability, when a transaction involves multiple targets, data aggregation can be performed on a per-target basis. Since each target is optimized for large files, and transactions can span many targets, there may be inherent scalability issues. For example, the limited amount of memory used to store files and transactions may limit scalability. In addition, applying many suboptimal accumulations of small data sizes is performance inhibiting. Effective scaling can result in using a slower storage medium (such as disk) to have enough storage so that appropriately sized accumulations can be generated without exceeding the available storage.

[0029] When consistent applications are required, transactional atomicity is desired. Consistency can be based on unit-of-work boundaries. If a unit-of-work completely encapsulates one or more transactions, then those transactions are considered consistent because there is no point in time when the data within the transaction is inconsistent with each other. If data from a single transaction is split across two or more units of work, then the data is considered inconsistent with respect to each other because only some of the data will be visible when the first unit of work is committed, regardless of how visibility indicates itself.

[0030] When applying the changes of a transaction to a target, there is a consistent application when the atomicity of the transaction is preserved. For example, if the batch of changes applied to a target includes a portion of the changes of the transaction, then all of these changes are applied in the same batch.

[0031] The illustrative embodiments recognize and take into account that the smallest unit of work may be a single transaction. Therefore, if a given transaction is too large for memory, there is a dependency on the disk where the content is stored.

[0032] The illustrative embodiments recognize and take into account that the need for disk-backed data buffering may have an impedance mismatch with the aggregation process. The current net effect aggregation method involves using data structures in key-value memory that hold individual operation data to facilitate conflict detection. When a specific key-value pair object can be deleted from memory, it is more efficient to resolve deletions. However, as the size grows and row objects remain in memory beyond a short-term threshold, there is an overhead in long-term memory management.

[0033] When using disk, it may become more expensive to perform operations to remove deleted files against the target's added accumulation files.Some techniques isolate deleted data by removing references to the deleted data.

[0034] When isolation of data is performed, providing the accumulated net effect data requires iteration over the rows of each data remaining in the net effect data set. From a performance perspective, this operation-by-operation consideration of the remaining data set is suboptimal. However, this type of consideration is useful for determining what data is remaining and where that data exists in the buffer if the data is buffered.

[0035] Therefore, by recognizing and considering these and other factors as described above, a method, apparatus, system and computer program product are provided for optimizing the application of data after the initial writing of data without further operation. In an illustrative example, a computer-implemented method aggregates change data. A computer system receives change data formatted in a byte sequence, which is used by a target of the change data. The computer system stores the change data in an area in an add buffer in a buffer system in response to the change data being used for an add operation. The computer system determines whether there is a conflict between the change data and the change data stored in the add buffer in response to the change data being used for a delete operation. The computer system stores the conflict position of the area in the add buffer in response to the existence of the conflict, and the add buffer contains the stored change data corresponding to the conflict. When the change data is to be applied to the target, the computer system sends the change data stored in the area of ​​the set in which there is no conflict in the add buffer to the target.

[0036] As used herein, a "set of" when used with reference to items means one or more items. For example, a set of conflicts is one or more conflicts.

[0037] With reference now to the figures, and in particular with reference to FIG1 , a pictorial representation of a network of data processing systems in which the illustrative embodiments may be implemented is depicted. Network data processing system 100 is a network of computers in which the illustrative embodiments may be implemented. Network data processing system 100 contains network 102, which is the medium used to provide communication links between various devices and computers connected together within network data processing system 100. Network 102 may include connections, such as wired, wireless communication links, or fiber optic cables.

[0038] In the depicted example, server computer 104 and server computer 106 are connected to network 102 along with storage unit 108. In addition, client device 110 is connected to network 102. As shown, client device 110 includes client computer 112, client computer 114, and client computer 116. Client device 110 may be, for example, a computer, a workstation, or a network computer. In the depicted example, server computer 104 provides information such as boot files, operating system images, and applications to client device 110. In addition, client device 110 may also include other types of client devices, such as mobile phone 118, tablet computer 120, and smart glasses 122. In this illustrative example, server computer 104, server computer 106, storage unit 108, and client device 110 are network devices connected to network 102, wherein network 102 is a communication medium for these network devices. Some or all of client devices 110 may form an Internet of Things (IoT), wherein these physical devices may be connected to network 102 and exchange information with each other through network 102.

[0039] In this example, client device 110 is a client to server computer 104. Network data processing system 100 may include additional server computers, client computers, and other devices not shown. Client device 110 connects to network 102 using at least one of a wired, fiber optic, or wireless connection.

[0040] Program instructions located in network data processing system 100 may be stored on a computer recordable storage medium and downloaded to the data processing system or other devices for use. For example, program instructions may be stored on a computer recordable storage medium on server computer 104 and downloaded to client device 110 via network 102 for use on client device 110.

[0041] In the depicted example, network data processing system 100 is the Internet, where network 102 represents a global collection of networks and gateways that communicate with each other using the Transmission Control Protocol / Internet Protocol (TCP / IP) protocol suite. The core of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, which consist of thousands of commercial, government, educational and other computer systems that route data and messages. Of course, network data processing system 100 may also be implemented using many different types of networks. For example, network 102 may include at least one of the Internet, an intranet, a local area network (LAN), a metropolitan area network (MAN), or a wide area network (WAN). FIG. 1 is intended as an example and not as an architectural limitation to the different illustrative embodiments.

[0042] As used herein, "plurality" when used with reference to an item means one or more items. For example, "plurality of different types of networks" is one or more different types of networks.

[0043] Furthermore, when used with a list of items, the phrase "at least one of" means that different combinations of one or more of the listed items can be used, and only one of each item in the list may be required. In other words, "at least one of" means any combination of items, and a number of items from the list can be used, but not all of the items in the list are required. An item can be a specific object, thing, or category.

[0044] For example, but not limited to, "at least one of item A, item B, or item C" may include item A, item A and item B, or item B. This example may also include item A, item B, and item C, or item B and item C. Of course, there may be any combination of these items. In some illustrative examples, "at least one of..." may be, for example, but not limited to, two of item A; one of item B; and 10 of item C; four of item B and seven of item C; or other suitable combinations.

[0045] In this illustrative example, data aggregator 130 is located in server computer 104. Data aggregator 130 may be operable to receive data 132 from application 133 in client computer 112 to be applied to database 134 in server computer 106. In this example, data 132 may take the form of rows to be applied to a table in database 134. The application of the rows may include at least one of an add operation or a delete operation.

[0046] As shown, data aggregator 130 can operate to perform large-scale aggregation of data after initial writes without buffer manipulation to perform delivery of accumulated data on demand. In this illustrative example, data 132 has a format used by a target such as database 134. Data 132 can be a sequence of bytes of data in the form of rows that can be added to and deleted from database 134.

[0047] As shown, data aggregator 130 stores data 132 in add buffer 136 and delete buffer 138. For example, rows of data 132 to be added are stored in add buffer 136, and rows of data to be deleted are stored in delete buffer 138. In some cases, rows of the same data may be deleted in data 132, where the rows of the same data were added to add buffer 136 from data previously received for aggregation. In the case of deleting and adding the same row, the data is not deleted from either buffer. Instead, the invalid region of the row in add buffer 136 that has been deleted is tracked in index 140. This mechanism enables data aggregator 130 to perform net effect aggregation by considering when conflicts occur.

[0048] For example, when a row is added to the add buffer 136, some or all of the data 132 in the row is used to create a unique identifier for the row. The unique identifier may be a hash of the data in the row. When a row for deletion is received, a hash value may be generated for the row. The hash value may be used to search for a match in the index 140. If a match is found, the bytes in the row for deletion received in the data 132 are compared with the bytes of the row stored in the add buffer 136. If there is a match, there is a conflict. This conflict exists because the same row is added and deleted.

[0049] Instead of deleting the row from the add buffer 136, the data aggregator 130 identifies an area in the add buffer 136 where the row in the area conflicts with the row being deleted in the data 132. The location of the area can be recorded in the index 140 as a first offset to the beginning of the data for the row and a second offset to the end of the data for the row in the add buffer 136. The location is for the area where the conflict occurred. The area is an invalid area, and the data within the area will not be sent to the database 134. Therefore, after the initial write of the data 132, only a single write of the data 132 to one of the add buffer 136 or the delete buffer 138 occurs.

[0050] When there is a conflict, the data 132 of the row being deleted that conflicts with the row in add buffer 136 need not be stored in delete buffer 138. In other illustrative examples, the data may be stored in delete buffer 138 where the location of the region identified in index 140 is the invalid region where the conflict occurred.

[0051] When a sufficient amount of data 132 is accumulated in the add buffer 136 and the delete buffer 138, the data 132 in these database buffers can be sent to the database 134. In this illustrative example, sending the data is based on a transaction boundary. A transaction boundary is when a transaction ends. Although transaction boundaries are not required, the use of transaction boundaries can enable a target such as the database 134 to know that all changes for a particular transaction have been received.

[0052] When data 132 is to be applied to a target, the data in the regions of add buffer 136 identified for transmission is transmitted to the target. These regions exclude the set of regions identified as invalid in index 140. The same identification is performed for the data in delete buffer 138. In this illustrative example, the rows added in delete buffer 138 are transmitted to database 134 before the rows are deleted in add buffer 136.

[0053] Additionally, checkpoints may also be stored in index 140. Checkpoints enable rolling back to a previous time so that only a portion of the rows in add buffer 136 and delete buffer 138 before the checkpoint at the previous time and based on the location of these areas identified by the checkpoint are sent. In this illustrative example, checkpoints may be set at consistency points such as transaction boundaries. Other types of consistency points include documents in a document-oriented data store, or data buffers from a non-transactional database.

[0054] The ability to use checkpointing is enabled because data 132 is not deleted from add buffer 136 or delete buffer 138. With checkpointing, rows from the most recent conflicting delete data can be saved in the buffer until the transaction completes to enable the checkpoint to be rolled back to the previous transaction.

[0055] Therefore, when rolling back to a checkpoint, the regions in the buffer are placed into groups, the first group contains the regions before the checkpoint, and the second group contains the regions after the checkpoint. When sending data to the database 134 based on the checkpoint, the regions before the checkpoint in the add buffer 136 and the delete buffer 138 are sent to the database 134, while the regions after the checkpoint in the add buffer 136 and the delete buffer 138 are not sent to the database 134.

[0056] Thus, the data aggregation provided by the data aggregator 130 enables transactions to be undone through a process for storing data in the add buffer 136 and the delete buffer 138, and managing data based on the identification of regions and conflicts within the index 140. In addition, the process used by the data aggregator 130 reduces the need for memory and can use a buffer backed by a disk to provide a desired level of performance. Compared to current techniques that use net effect aggregation, this ability to use disk is achieved by writing data to the buffer once during the aggregation process.

[0057] In addition, compared to other techniques, the data aggregator 130 does not require a lookahead mechanism and avoids individual operation data manipulation. The data aggregator 130 does not need to reposition backwards in the buffer, thereby improving the performance of retrieving data from the file-backed buffer stored on disk. In this illustrative example, system overhead can be reduced during aggregation by removing memory cleanup of potentially large objects corresponding to the data of each operation. The regions and indexes in the buffer are reusable during processing, and the data in the buffer can be overwritten once the data is sent to the target.

[0058] Thus, the data aggregator 130 employs indexing, write-once, non-destructive deletion, and region views of the data in the buffer. This process employed by the data aggregator 130 enables data to be written to the target out of order and in parallel while maintaining consistency when applying changes in the data aggregated to the target. In addition, storing a unique identifier (such as a hash) for the data in the region reduces the need to read the buffer until the data is to be sent to the target.

[0059] Referring now to Figure 2, a block diagram of a data aggregation environment is depicted in accordance with an illustrative embodiment. In this illustrative example, data aggregation environment 200 includes components that may be implemented in hardware, such as that shown in network data processing system 100 in Figure 1.

[0060] In this illustrative example, data aggregation environment 200 includes data transfer system 202, which may receive change data 204 from source 206 for transfer to target 208. In this illustrative example, data transfer system 202 includes computer system 210 and data aggregator 212.

[0061] The data aggregator 212 may be implemented in software, hardware, firmware, or a combination thereof. When software is used, the operations performed by the data aggregator 212 may be implemented in program instructions configured to run on hardware such as a processor unit. When firmware is used, the operations performed by the data aggregator 212 may be implemented in program instructions and data and stored in a persistent memory to run on a processor unit. When hardware is employed, the hardware may include circuits that operate to perform the operations in the data aggregator 212.

[0062] In an illustrative example, the hardware may take the form of at least one of a circuit system, an integrated circuit, an application specific integrated circuit (ASIC), a programmable logic device, or some other suitable type of hardware configured to perform multiple operations. Using a programmable logic device, the device can be configured to perform multiple operations. The device can be reconfigured at a later time, or can be permanently configured to perform multiple operations. Programmable logic devices include, for example, programmable logic arrays, programmable array logic, field programmable logic arrays, field programmable gate arrays, and other suitable hardware devices. In addition, the method can be implemented in organic components integrated with inorganic components, and can be composed entirely of organic components other than humans. For example, the method can be implemented as a circuit in an organic semiconductor.

[0063] Computer system 210 is a physical hardware system and includes one or more data processing systems. When there are more than one data processing systems in computer system 210, these data processing systems communicate with each other using a communication medium. The communication medium may be a network. The data processing system may be selected from at least one of a computer, a server computer, a tablet computer, or some other suitable data processing system.

[0064] As depicted, computer system 210 includes multiple processor units 214 capable of executing program instructions 216 for implementing the process in the illustrative example. As used herein, the processor unit in multiple processor units 214 is a hardware device and includes hardware circuits, such as those on an integrated circuit that responds to and processes instructions and program codes for operating a computer. When multiple processor units 214 execute program instructions 216 for a process, multiple processor units 214 are one or more processor units that can be on the same computer or on different computers. In other words, the process can be distributed between processor units on the same or different computers in the computer system. In addition, multiple processor units 214 can be processor units of the same type or different types. For example, multiple processor units can be selected from at least one of a single-core processor, a dual-core processor, a multi-processor core, a general-purpose central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), or some other type of processor unit.

[0065] In this illustrative example, data aggregator 212 may be operable to receive change data 204 formatted in a byte sequence used by target 208 of change data 204. As depicted, metadata 218 may be received along with change data 204. In this illustrative example, metadata 218 describes change data 204. For example, metadata 218 may identify change operations 220 to be applied to change data 204. Change operations 220 may be, for example, add operations 222 or delete operations 224. In one example, if change data 204 includes rows for a set of tables to be applied in target 208, each row may be associated with a change operation 220, such as add operations 222 and delete operations 224.

[0066] In this example, metadata 218 can also be used to determine the boundaries of the incoming data. In this example, metadata 218 can identify the change data 204 as a separate piece of data from other data also received from source 206. For example, metadata 218 can include boundaries 225 for the change data 204 that is undergoing change operation 220.

[0067] In other words, the boundary 225 can identify the size or extent of the change data 204 to distinguish the change data 204 from other data received. In this illustrative example, the change data 204 is a data object, which can be, for example, a row, a file, a data block, a record, or some other type of data object. Using the boundary 225, the data aggregator 212 does not need any knowledge about what type of data object is being processed. In addition, the metadata 218 can indicate how much of the row in the change data 204 is needed to uniquely identify the row in the change data 204.

[0068] Data aggregator 212 stores change data 204 in region 226 in buffer system 228. In this example, buffer system 228 includes add buffer 230 and delete buffer 232. In this illustrative example, in response to change data 204 being for add operation 222, change data 204 is stored by data aggregator 212 in region 226 in add buffer 230 in buffer system 228. As depicted, when change operation 220 for change data 204 is delete operation 224, data aggregator 212 stores change data 204 in region 226 in delete buffer 232.

[0069] In this illustrative example, in addition to storing change data 204, data aggregator 212 also stores information about change data 204 in index system 234. Index system 234 includes a collection of indexes that store information about change data 204 stored in buffer system 228.

[0070] For example, data aggregator 212 stores unique identifier 236 of change data 204 in location 238 of area 226 within buffer system 228. As shown, this information can be stored in index system 234. Unique identifier 236 can take many different forms. In an illustrative example, unique identifier 236 is a hash value calculated based on the hash of the bytes in change data 204. The number of bytes used can be those that make change data 204 unique. Therefore, not all change data 204 need to be hashed to the hash value of unique identifier 236. For example, if change data 204 is a row, the first three columns of the row may be sufficient to generate the hash value of unique identifier 236. In other illustrative examples, all rows of change data 204 can be used.

[0071] In the illustrative example, other types of identifiers may be used in place of a hash value for unique identifier 236. For example, an alphanumeric string may be assigned to change data 204. In another example, unique identifier 236 may be an address of source 206 with a timestamp and a random value.

[0072] Position 238 identifies whether region 226 is located in add buffer 230 or delete buffer 232. In addition, position 238 identifies the location of region 226 within the buffer. For example, position 238 may include an offset from the beginning of the buffer to the beginning of region 226 and an offset to the end of region 226. As another example, position 238 may include an offset from the beginning of the buffer to the beginning of region 226 and a length or size of change data 204 stored in region 226. In this illustrative example, stored change data 242 is previously stored change data in region 244 located in at least one of add buffer 230 or delete buffer 232.

[0073] In the depicted example, in response to change data 204 being used for delete operation 224, data aggregator 212 determines whether a conflict 240 exists between change data 204 received from source 206 and change data 242 stored in add buffer 230. In this example, the comparison is made with stored change data 242 found in a set of regions 244 in add buffer 230.

[0074] In this illustrative example, a conflict 240 exists when the change data 204 matches the stored change data 242. For example, if the change data 204 is a row, then if the same row is found in the stored change data 242, then a conflict 240 exists. When this situation exists, the added and then deleted stored change data 242 does not need to be sent to the target 306. This feature is a net effect aggregation feature that can reduce the amount of bandwidth required to send the stored change data 242 to the target 208.

[0075] The determination as to whether a conflict 240 exists can be made by data aggregator 212 in a number of different ways. For example, data aggregator 212 can compare unique identifier 236 of change data 204 with unique identifier 246 stored in index system 234. In this example, stored unique identifier 246 includes a unique identifier corresponding to region 244 of change data 242 stored in add buffer 230. For example, when the unique identifier takes the form of a hash value, the hash value of change data 204 can be compared with the hash value of stored change data 242 located in region 244 in add buffer 230.

[0076] In response to there being a match between the unique identifier 236 and the stored unique identifier 248, the data aggregator 212 compares the change data 204 with the stored change data 242 corresponding to the stored unique identifier 248 to determine if there is a conflict, in response to the unique identifier 236 matching the stored unique identifier 248. For example, when the stored change data 242 is in the form of rows, the rows of the change data 204 can be compared with the rows of the stored change data 242 located in the region 226 identified by the stored unique identifier 248.

[0077] In this illustrative example, in response to the presence of conflict 240, data aggregator 212 marks the location of stored change data 242 that matches change data 204. For example, data aggregator 212 can store conflict location 250 for region 226 in add buffer 230, which contains stored change data 242 identified in conflict 240. The conflict location is stored in index system 234. In this example, the identification of the region having a conflict can be used to omit the region from being sent to target 208.

[0078] In other words, the conflict location 250 may identify which portion of the stored change data 242 should not be sent to the target 208, wherein the portion of the stored change data 242 is located in the region 226 identified by the stored unique identifier 248. In this illustrative example, the conflict location 250 includes an offset to the beginning of the region 226 and an offset to the end of the region 226.

[0079] In this illustrative example, when the stored change data 242 is ready to be sent, the change data 242 stored in the area 244 in the buffer system 228 can be sent to the target 208. The data aggregator 212 can determine when the stored change data 242 is ready to be sent, which can be triggered by an event 252. The event 252 can take a variety of different forms. For example, the event 252 can be the passage of a period of time, the detection of a transaction boundary, the amount of data in the buffer system 228 exceeding a threshold, user input, receiving a request from the target 208, or some other suitable event.

[0080] In this illustrative example, data aggregator 212 sends stored change data 242 located in region 244 in buffer system 228. Stored change data 242 includes stored change data 242 located in region 244 in both add buffer 230 and delete buffer 232. When sending stored change data 242 (data aggregator 212), data aggregator 212 omits stored change data 242 that is subject to conflicts 254. For example, in response, when stored change data 242 is to be applied to target 208, data aggregator 212 sends stored change data 242 in region 244 in add buffer 230 to target 208, where there is no set of conflicts 254 in region 244 in add buffer 230. Data aggregator 212 also sends stored change data 242 in region 244 in delete buffer 232 to target 208, where there is no set of conflicts 254.

[0081] For example, upon sending the stored change data 242, the data aggregator 212 determines whether a threshold has been reached for the buffer system 228. In other words, it is determined whether the amount of stored change data 242 stored in the buffer system 228 is greater than a certain threshold amount.

[0082] Data aggregator 212 identifies stored change data 242 to be omitted from add buffer 230 and delete buffer 232 based on the set of regions 244 identified as having conflicts 254 using conflict locations. In this illustrative example, a conflict may have two conflict locations. One conflict location may be used for the change data stored in add buffer 230, and the other conflict location may be used for the corresponding change data stored in delete buffer 232.

[0083] Therefore, the data aggregator 212 sends the change data 242 stored in the delete buffer 232 and the change data 242 stored in the add buffer 230 that is not identified as omitted to the target 208. In addition, the data aggregator 212 can send metadata 256 indicating the stored change data 242 to be deleted from the target 208 and the stored change data 242 to be added to the target 208.

[0084] Additionally, data aggregator 212 may employ checkpointing 263. For example, data aggregator 212 may store checkpoint 258 in index system 234. In this illustrative example, checkpoint 258 identifies an end 265 of a transaction in buffer system 228. Additionally, checkpoint 258 may also include information identifying region 244 of a collection of conflicts 254 that occurred up to the end 265 of the transaction. In this illustrative example, the end 265 of the transaction corresponds to a transaction boundary or some other type of consistency point.

[0085] Using the checkpoint feature, data aggregator 212 may receive request 262 to roll back buffer system 228 to checkpoint 258. Data aggregator 212 identifies a set of conflicts 254 detected prior to checkpoint 258. In this example, the set of conflicts 254 may be an empty set, meaning no conflicts.

[0086] In this example, the data aggregator 212 identifies stored change data 242 to be omitted in the add buffer 230 and the delete buffer 232 in the buffer system 228 based on the regions 244 identified as having a set of conflicts 254 detected before the checkpoint 258. When conflicts exist, the regions 244 are used for conflicts between the change data 242 stored in the add buffer 230 and the delete buffer 232. For example, a region for a row in the add buffer 230 has a corresponding region for the same row in the delete buffer 232 for conflicts between these add and delete operations for the row.

[0087] The data aggregator 212 sends the stored change data 242 ending at the checkpoint 258 to the add buffer 230 and the delete buffer 232 , the stored change data 242 not being identified as omitted; and stores the change data stored in the delete buffer 232 to the target 208 .

[0088] In one illustrative example, one or more technical solutions are proposed that overcome the technical problem of performance issues related to scaling the amount of aggregated data. Therefore, one or more solutions in the illustrative example can enable the use of buffers located in auxiliary storage devices (such as tables) other than memory. One or more solutions in the illustrative example employ indexing, write-once, non-destructive deletion, and regional views of data in the buffers in the buffer system 228. In other words, data is not deleted from the buffers in the buffer system 228. This type of data accumulation also enables checkpoints to roll back to a previous or time point when the stored change data 242 is sent.

[0089] For example, when a new transaction has many more bytes of data than a previous transaction, the data aggregator 212 can roll back to a previous checkpoint and send the already aggregated data without waiting for a transaction boundary to detect the end of the current transaction. In addition, with a write-once process, the use of secondary storage devices other than memory can be used without the performance loss encountered with current techniques.

[0090] Computer system 210 may be configured to perform at least one of the steps, operations, or actions described in the different illustrative examples using software, hardware, firmware, or a combination thereof. Thus, computer system 210 operates as a special-purpose computer system, wherein data aggregator 212 in computer system 210 enables data to be aggregated with improved efficiency and in a scalable manner. In particular, data aggregator 212 transforms computer system 210 into a special-purpose computer system compared to currently available general-purpose computer systems that do not have data aggregator 212.

[0091] In the illustrative example, the use of the data aggregator 212 in the computer system 210 integrates the process into the practical application of the method for improving the performance of the computer system 210. In other words, the data aggregator 212 in the computer system 210 involves the practical application of the process integrated into the data aggregator 212 in the computer system 210 for aggregating data using a write-once process. In this illustrative example, the data aggregator 212 in the computer system 210 enables the use of slower storage devices in addition to memory without the performance issues encountered by current technologies. The data aggregator 212 also enables checkpointing when determining what change data to send to a target. In this way, the data aggregator 212 in the computer system 210 provides a practical application of aggregated data so that the functionality of the computer system 210 is improved.

[0092] The illustration of the data aggregation environment 200 in FIG. 2 is not meant to imply physical or architectural limitations on the manner in which the illustrative embodiments may be implemented. Other components in addition to or in place of the components shown may be used. Some components may be unnecessary. In addition, the boxes are presented to illustrate some functional components. When implemented in the illustrative embodiments, one or more of these boxes may be combined, divided, or combined and divided into different boxes.

[0093] For example, although a single add buffer in a single delete is shown in buffer system 228, multiple add buffers and multiple delete buffers can be used to aggregate change data 204 to send to target 208. As another example, although a single source is depicted, change data 204 can be directed to target 208. In another illustrative example, change data 204 can be sent to one or more targets in addition to or in place of target 208. For multiple targets, a buffer system or a set of delete buffers and a set of add buffers can be allocated for each target. As yet another example, change operation 220 can also be an update operation in addition to add operation 222 and delete operation 224. Update operations involve deleting and adding change data.

[0094] 3 , a data flow for aggregating change data is depicted in accordance with an illustrative embodiment. Data aggregation process 300 is an example of a net effect aggregation process that may be implemented using data aggregator 212 in FIG.

[0095] In this illustrative example, data aggregation process 300 can receive change data 302 from source 304 and aggregate change data 302 sent to target 306. In this example, change data 302 is applied to rows in a relational database management system table. In this illustrative example, the key is all columns in the table. This example of a transaction is a logical grouping of at least one of a change or operation. An operation or update, such as an update, insert, or delete. An update is decomposed into a corresponding delete followed by an insert of rows of data.

[0096] As shown, the change analysis 307 in the data aggregation process 300 processes the change data 302 of the row to determine how to process the change data 302. The change analysis 307 identifies information about the change data 302. The information includes, for example, the type of operation to be performed, a transaction identifier, and appropriate information. In this particular example, the change operation in the change data 302 received from the source 304 can be an insertion or deletion of a row of data.

[0097] If the operation is an insert, a change 310 is added to the change data 302, and data representing the added change 310 is written to the add buffer 312. In addition, metadata 314 obtained from the add change 310 is used to add the row to the add region index 316. The metadata 314 can appear in many ways. An often encountered example is an indicator value in a header associated with the change.

[0098] In the depicted example, metadata 314 includes an offset into add buffer 312 at the start of the row, an offset into add buffer 312, a hash value of the bytes that make change data 302 unique is saved. This information is saved as an entry in add region index 316. The entry uses the hash value as a key and stores the offset, thereby identifying the start and end of the data in add buffer 312. If the entry formed in add region index 316 is the last entry, the offset to the end of the region is recorded as the last consistency point of add buffer 312. This consistency point can be a transaction boundary. The consistency point is used for checkpointing.

[0099] If the change data 302 is identified as a delete change 318, then delete conflict detection 320 in the data aggregation process 300 is performed. Delete conflict detection 320 involves generating a hash value so that the change data is unique or highly likely to be unique. Delete conflict detection 320 uses the hash value of the delete change 318 to perform a check for conflicts 322 of the add index. The hash value of the change data 302 is compared to the key in the entry in the add region index 316 of the row of the change data stored in the add buffer 312.

[0100] In the event that the hash values ​​match, the actual row bytes of the deleted row in change data 302 are compared to the row in change data stored in add buffer 312 with a matching hash value. This check is performed to ensure equality. Hash collisions on unequal data are very rare, but can occur. In this example, all data is checked to ensure that the collision is real and not an artifact of a hash collision. Optionally, if the unique portion of the data in a row is small enough, the unique portion can be cached in add region index 316 to avoid a lookup in add buffer 312.

[0101] When there is a conflict 324, an entry is added to the delete region index 326. The index is a metadata index that contains information about the conflict 324. The entry may include an offset to the beginning of the line in the add buffer 312 and an offset to the end of the line. In addition, the delete region index 326 may also include an identification of the number of conflicts that have been processed for the add buffer 312.

[0102] In this illustrative example, if there is a checkpoint feature, the data structure can maintain the current delete row data or transaction. In other words, the data can be maintained until the change data is sent to the target 306. At this time, the data can be rewritten.

[0103] When the delete conflict detection 320 results in no conflict 328, the change data 302 for the delete in the row is written to the delete buffer 330. If the change data is the last of a transaction, the offset of the end of the data for the row in the delete buffer 330 is reported as the most recent consistency point for the delete buffer 330. In the depicted example, the end of a transaction or a transaction boundary is used as a consistency point.

[0104] In this illustrative example, application 332 in data aggregation process 300 sends the change data in add buffer 312 and delete buffer 330 to target 306. In this illustrative example, application 332 can send the change data when a sufficient aggregate size has been reached or a time threshold has been exceeded. Therefore, in this example, the net effect of using data aggregation process 300 application can be performed at transaction boundaries to maintain the atomicity of transactions with target 306.

[0105] In this illustrative example, application 332 considers regions omitted in add buffer 312 due to conflicts. These omitted regions may be identified using the conflicts identified in delete region index 326. For example, data may be sent from the first region in add buffer 312 to the offset identified in the first entry in delete region index 326 identifying the region with conflicts. The change data in add buffer 312 is then sent from the beginning of the next region until the offset identified in the next entry in delete region index 326. This process may be followed until all change data has been identified in add buffer 312 to be sent. The change data omits the change data from the region identified in delete region index 326 as having conflicts.

[0106] In this illustrative example, application 332 sends all change data in delete buffer 330. This occurs in this illustrative example because change data is only stored in delete buffer 334, and changes are deleted when there are no conflicts 328. When there is no entry in delete region index 326, all change data in add buffer 312 and delete buffer 330 are sent.

[0107] When the application 332 uses checkpointing, the application 332 uses the delete region index 326 until the last checkpoint to be applied to identify the portion of the add buffer 312. This checkpoint can be used when the current aggregation of data exceeds the maximum number of allowable bytes. The maximum number can be a limit of the target 306. In other examples, delay considerations can be used to send data before the current transaction is completed. In other words, if the amount of time required to complete the current transaction is greater than the expected amount of time, the change data can be sent and the change data is omitted from the current transaction. The change data sent also omits the change data in the area that conflicts based on the deletion in the previous transaction. Therefore, if the deletion in the current transaction conflicts with the change data in the previous transaction before the checkpoint, the conflict is not considered when determining what data not to send.

[0108] With the checkpoint set, the delete region index 326 is checked to determine if there are conflicts after the checkpoint of the current transaction. For example, the delete region index 326 is checked to determine if any entries of the delete region are part of the current transaction. If so, these entries will be considered to be removed from the delete region index 326, and the associated entries (which may have been pre-generated during delete conflict detection, or calculated based on the add row buffer bytes) are appended to the end of the delete buffer 330 and therefore beyond the last consistency point in the delete buffer 330. In other words, some conflicts can be undone when there are deletes due to deletes occurring in the current transaction after the checkpoint. The change data in the delete buffer 330 is sent to the target 306 until the last consistency point of the delete buffer 330 and any "unfinished" delete conflict entries. If the consistency point is the end of the buffer, the change data is written out from the add buffer 312.

[0109] The description of the data aggregation process is provided as an illustrative example and is not meant to limit the manner in which the data aggregation process can be implemented in other illustrative examples. For example, in other illustrative examples, even when there is a conflict, the change data can be stored in the delete buffer 330. As another example, the add region index 316 and the delete region index 326 can be implemented as a single index and other implementations.

[0110] Referring now to FIG4, an index is depicted in accordance with an illustrative embodiment. In this illustrative example, add region index 400 and delete region index 402 are examples of indexes that may be used within indexing system 234 in FIG2. Additionally, add region index 400 is an example of add region index 316 in FIG3, and delete region index 402 is an example of delete region index 326 in FIG3.

[0111] As depicted, add region index 400 identifies the location of regions in the add buffer that contain stored change data and can be used to search for conflicts with change data for delete operations. Each of these regions can correspond to a data object, such as a row, table, file, or other data object. In this example, add region index 400 includes entry 404. Each entry in entry 404 corresponds to a region in the add buffer and contains information about the stored change data located within the region.

[0112] For example, entry 406 includes hash value 408, start offset 410, and end offset 412. Hash value 408 is a unique identifier for the change data stored in the region corresponding to entry 406. The hash value also serves as a key or index to add entry 404 within region index 400.

[0113] As shown, a start offset 410 identifies the start position of the region containing stored change values. An end offset 412 identifies the end position of the region containing stored change values. These offsets identify the locations of regions within the add buffer.

[0114] Additionally, entry 406 may optionally include unique bytes 414. Depending on the size of the data stored in the region, unique bytes 414 may also be included in entry 406 for comparison to determine if hash value 408 matches the hash value generated for the changed data for the delete operation.

[0115] In this example, a delete region index 402 identifies a region in the add buffer that will be omitted when the change data stored in the add buffer is sent to the target for application to the target. As shown, the delete region index 402 includes entries 420, which contain information about conflicts between the change data stored in the add buffer and the change data stored in the add buffer. These entries are examples of conflicting locations, such as the conflicting location 250 in FIG. 2. For example, an entry 422 in the entries 420 includes a start offset 424 and an end offset 426 and a transaction identifier 428.

[0116] In this example, the start offset 424 identifies the start position of the region containing the stored change values ​​for deletion. The end offset 426 identifies the end position of the region containing the stored change values. These offsets identify the location of the region within the add buffer. Thus, entry 420 can be used to generate a region list of regions that should not be sent from the add and delete buffer.

[0117] Transaction identifier 428 can be used to identify which transaction the area in the add buffer is associated with. Transaction identifier 428 is the number of transactions that have occurred since the change data has been stored in the add buffer. In other words, transaction identifier 428 is not the actual number of transactions used by the source. The transaction identifier can be used for checkpointing. In other words, the transaction identifier can be an identifier associated with a specific checkpoint in an entry. Transaction identifier 428 can be used to indicate whether a specific conflict is a conflict that occurred after the checkpoint to be rolled back or before the checkpoint.

[0118] The illustration of add region index 400 and delete region index 402 is provided as an example of one way that indexing can be implemented. The illustration is not meant to limit the way that other indexing can be implemented. For example, the location of the region can be identified using a start offset and a link or size of the data instead of an offset. As another example, in other implementations, a transaction identifier that identifies the transaction number of the changed data can be included in the add region index 400.

[0119] Turning next to FIG. 5 , a flow chart of a process for aggregating change data according to an illustrative embodiment is depicted. The process in FIG. 5 may be implemented in hardware, software, or both. When implemented in software, the process may take the form of program instructions executed by one or more processor units in one or more hardware devices in one or more computer systems. For example, the process may be implemented in data aggregator 212 in computer system 210 in FIG. 2 .

[0120] The process begins by receiving change data formatted in a sequence of bytes that is used by a target of the change data (step 500). The process stores the change data in an area in an add buffer in a buffer system in response to the change data being for an add operation (step 502). The process stores the change data in a delete buffer in the buffer system in response to the change data being for a delete operation (step 504).

[0121] The process determines whether there is a conflict between the change data and the change data stored in the add buffer in response to the change data being used for the delete operation (step 506). In response to the existence of the conflict, the process stores the conflict position of the region in the add buffer, the add buffer containing the stored change data corresponding to the conflict (step 508).

[0122] When the change data is to be applied to the target, the process sends the change data stored in the area of ​​the set in which there is no conflict in the add buffer to the target (step 510). Thereafter, the process terminates.

[0123] 6, a flow chart of a process for sending stored change data is depicted in accordance with an illustrative embodiment. The steps in this figure are examples of implementations of step 510 in FIG. 5.

[0124] The process begins by determining whether a threshold of the buffer system has been reached (step 600). The process uses the set of conflicting locations to identify stored change data to be omitted in the add buffer based on the set of regions identified as having the set of conflicts (step 602).

[0125] The process sends the change data stored in the delete buffer that is not identified for omission and the change data stored in the add buffer that is not identified for omission to the target (step 604). Thereafter, the process terminates.

[0126] In Figure 7, a flow chart of a process for sending aggregate change data is depicted in accordance with an illustrative embodiment. In addition to the steps in Figure 5, the steps in this figure may also be performed.

[0127] The process sends metadata indicating the stored change data to be deleted from the target and the stored change data to be added to the target (step 700). Thereafter, the process terminates.

[0128] Next, with reference to Figure 8, a flow chart of a process for determining whether a conflict exists is depicted in accordance with an illustrative embodiment. The steps in this figure are examples of implementations of step 506 in Figure 5. In this flow chart, a comparison is made between the change data for a delete operation and the change data stored in the add buffer for an add operation.

[0129] The process begins by comparing the unique identifier of the change data with the stored unique identifier of the area of ​​the change data stored in the add buffer (step 800). In step 800, the unique identifier of the change data can be a hash of the bytes in the change data that make the change data unique. The hash can be some or a portion of all the change data in the area. For example, the change data includes rows of data, each of which is stored in a region. In this example, the hash can be used for a portion of the row that is sufficient to uniquely identify the row from other rows in the change data. In some illustrative examples, a hash can be generated for the entire row in the change data. In other illustrative examples, the unique identifier can be some other type of identifier assigned to the row, such as an alphanumeric string. Any type of identifier can be used as long as the unique identifier identifies each row.

[0130] A determination is made as to whether there is a match between the unique identifier of the change data and the unique identifier of the region of the stored change data (step 802). If there is a match, the process compares the change data with the stored change data corresponding to the stored unique identifier to determine whether there is a conflict (step 804). In step 802, the stored unique identifier is one of the unique identifiers of the region of the stored data that matches the unique identifier to the change data. Thereafter, the process terminates. If there is a match between the change data and the stored change data, there is a conflict between the change data to be deleted and the corresponding change data to be added. Referring again to step 802, if there is no match, the process terminates.

[0131] Turning now to Figure 9, depicted is a flow chart of a process for aggregating change data in accordance with an illustrative embodiment. In addition to the steps in Figure 5, the steps in this figure may also be performed.

[0132] The process stores the unique identifier of the change data and the location of the region within the buffer system (step 900). Thereafter, the process terminates. The unique identifier and location may be stored in an index and used in step 506 to determine if there is a conflict when the change data is received. In this example, the unique identifier may be a hash or other type of identifier that uniquely identifies the change data in the region.

[0133] Turning now to Figure 10, a flow diagram of a process for checkpointing is depicted in accordance with an illustrative embodiment. In addition to the steps in Figure 5, the steps in this figure may also be performed.

[0134] The process stores a checkpoint, wherein the checkpoint identifies the end of a transaction in the buffer system and identifies a set of regions for which the set of conflicts occurred until the end of the transaction (step 1000). Thereafter the process terminates.

[0135] 11, a flow diagram of a process for sending stored change data using checkpoints is depicted in accordance with an illustrative embodiment. In addition to the steps in FIG. 5, the steps in this figure may also be performed using the checkpoint setup described in FIG.

[0136] The process begins by receiving a request to roll back the buffer system to a checkpoint (step 1100). The process identifies a set of conflicts detected before the checkpoint (step 1102). In step 1102, the set of conflicts may be an empty set. In other words, there may be no conflicts, resulting in the set of conflicts being zero.

[0137] The process identifies stored change data to be omitted in the add buffer based on the set of regions identified as having a set of conflicts detected before the checkpoint (step 1104). The process sends the stored change data ending at the location of the checkpoint in the add buffer and the delete buffer to the target (step 1106). Thereafter, the process terminates.

[0138] The flow chart and block diagram in the different embodiments depicted show the architecture, function and operation of some possible implementations of the device and method in the illustrative embodiment.In this regard, each box in the flow chart or block diagram can represent at least one of a part of a module, a segment, a function or an operation or a step.For example, one or more blocks can be implemented as a combination of program instructions, hardware or program instructions and hardware.When implemented in hardware, the hardware can, for example, take the form of an integrated circuit, which is manufactured or configured to perform one or more operations in the flow chart or block diagram.When implemented as a combination of program instructions and hardware, an embodiment can take the form of firmware.Each box in the flow chart or block diagram can be implemented using a dedicated hardware system, which performs different operations or combinations of program instructions of dedicated hardware and run by dedicated hardware.

[0139] In some alternatives to the illustrative embodiments, one or more functions shown in the blocks may not occur in the order shown in the figure. For example, in some cases, two blocks shown in succession may be performed substantially simultaneously, or the blocks may sometimes be performed in reverse order, depending on the functions involved. In addition, other blocks may be added in addition to the blocks shown in the flow chart or block diagram.

[0140] For example, step 504 in FIG. 5 may be an optional step that is omitted when there is a conflict. For example, when there is a conflict, the process does not need to store the change data for deletion. In response to the change data being used for the delete operation and there being no conflict, the process in step 504 may store the change data in a delete buffer in the buffer system.

[0141] Turning now to FIG. 12 , a block diagram of a data processing system according to an illustrative embodiment is depicted. Data processing system 1200 may be used to implement server computer 104, server computer 106, and client device 110 in FIG. 1 . Data processing system 1200 may also be used to implement computer system 210 in FIG. 2 . In this illustrative example, data processing system 1200 includes a communication framework 1202 that provides communications between processor unit 1204, memory 1206, permanent storage 1208, communication unit 1210, input / output (I / O) unit 1212, and display 1214. In this example, communication framework 1202 takes the form of a bus system.

[0142] The processor unit 1204 is used to execute instructions of the software that may be loaded into the memory 1206. The processor unit 1204 includes one or more processors. For example, the processor unit 1204 may be selected from at least one of a multi-core processor, a central processing unit (CPU), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a network processor, or some other suitable type of processor. In addition, the processor unit 1204 may be implemented using one or more heterogeneous processor systems in which a main processor is present on a single chip with an auxiliary processor. As another illustrative example, the processor unit 1204 may be a symmetric multi-processor system that includes multiple processors of the same type on a single chip.

[0143] Memory 1206 and permanent storage 1208 are examples of storage devices 1216. A storage device is any hardware capable of storing information, such as, but not limited to, data, program instructions in functional form, or other suitable information, at least one of temporary, permanent, or both temporary and permanent. In these illustrative examples, storage devices 1216 may also be referred to as computer-readable storage devices. In these examples, memory 1206 may be, for example, a random access memory or any other suitable volatile or non-volatile storage device. Persistent storage 1208 may take various forms, depending on the particular implementation.

[0144] For example, permanent storage 1208 may include one or more components or devices. For example, permanent storage 1208 may be a hard drive, a solid-state drive (SSD), flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination thereof. The media used by permanent storage 1208 may also be removable. For example, a removable hard drive may be used for permanent storage 1208.

[0145] In these illustrative examples, communications unit 1210 provides for communications with other data processing systems or devices. In these illustrative examples, communications unit 1210 is a network interface card.

[0146] Input / output unit 1212 allows input and output of data with other devices that may be connected to data processing system 1200. For example, input / output unit 1212 may provide a connection for user input through at least one of a keyboard, a mouse, or some other suitable input device. Additionally, input / output unit 1212 may send output to a printer. Display 1214 provides a mechanism for displaying information to a user.

[0147] Instructions for at least one of the operating system, applications, or programs may be located in storage devices 1216, which are in communication with processor unit 1204 through communications framework 1202. The processes of the different embodiments may be performed by processor unit 1204 using computer-implemented instructions, which may be located in a memory, such as memory 1206.

[0148] These instructions are referred to as program instructions, computer usable program instructions, or computer readable program instructions that can be read and executed by a processor in processor unit 1204. The program instructions in different embodiments may be embodied on different physical or computer readable storage media, such as memory 1206 or persistent storage 1208.

[0149] Program instructions 1218 are located in functional form on computer readable medium 1220, which is selectively removable and can be loaded onto or transferred to data processing system 1200 for execution by processor unit 1204. In these illustrative examples, program instructions 1218 and computer readable medium 1220 form computer program product 1222. In the illustrative examples, computer readable medium 1220 is computer readable storage medium 1224.

[0150] The computer-readable storage medium 1224 is a physical or tangible storage device for storing the program instructions 1218, rather than a medium that propagates or transmits the program instructions 1218. As used herein, the computer-readable storage medium 1224 should not be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or an electrical signal transmitted through wires.

[0151] Alternatively, the program instructions 1218 may be transferred to the data processing system 1200 using a computer readable signal medium. A computer readable signal medium is a signal, and may be, for example, a propagated data signal containing the program instructions 1218. For example, a computer readable signal medium may be at least one of an electromagnetic signal, an optical signal, or any other suitable type of signal. These signals may be transmitted via a connection such as a wireless connection, a fiber optic cable, a coaxial cable, an electric wire, or any other suitable type of connection.

[0152] In addition, as used herein, "computer-readable medium 1220" may be singular or plural. For example, program instructions 1218 may be located in computer-readable medium 1220 in the form of a single storage device or system. In another example, program instructions 1218 may be located in computer-readable medium 1220 distributed in multiple data processing systems. In other words, some instructions in program instructions 1218 may be located in one data processing system, while other instructions in program instructions 1218 may be located in one data processing system. For example, a portion of program instructions 1218 may be located in computer-readable medium 1220 in a server computer, while another portion of program instructions 1218 may be located in computer-readable medium 1220 located in a collection of client computers.

[0153] The different components shown for data processing system 1200 are not meant to provide architectural limitations on the manner in which different embodiments may be implemented. In some illustrative examples, one or more of the components may be incorporated into another component or otherwise form a part of another component. For example, in some illustrative examples, memory 1206 or portions thereof may be incorporated into processor unit 1204. Different illustrative embodiments may be implemented in a data processing system that includes components in addition to or in place of those components shown for data processing system 1200. Other components shown in Figure 12 may be different from the illustrative examples shown. Any hardware device or system capable of running program instructions 1218 may be used to implement different embodiments.

[0154] Therefore, the illustrative embodiments of the present invention provide a computer-implemented method, computer system, and computer program product for aggregating change data. Change data formatted in a byte sequence used by a target of the change data is received. In response to the change data being used for an add operation, the change data is stored in an area in an add buffer in a buffer system. In response to the change data being used for a delete operation, it is determined whether there is a conflict between the change data and the change data stored in the add buffer. In response to the existence of a conflict, a conflict position is stored in an add buffer for the area, and the add buffer contains stored change data corresponding to the conflict. When the change data is applied to the target, in response, the change data stored in the area of ​​the set in which there is no conflict in the add buffer is sent to the target.

[0155] Thus, one or more illustrative examples provide the ability to perform the aggregation by writing the data once. In the illustrative examples, the buffer does not need to be manipulated after the change data is written to the buffer separately. The process in the depicted example reduces the need for memory such as random access memory, and a buffer backed by a disk or other auxiliary storage device can be used to provide the desired performance level. Compared to current techniques that use net effect aggregation, this ability to use disk is achieved by using writing the data to the buffer once during the aggregation process. In the illustrative examples, system overhead can be reduced during aggregation by removing memory cleanup of potentially large objects corresponding to the data of each operation. In the depicted example, the area in the buffer and the entries in the index system are reusable during the process, and the data in the buffer can be overwritten once the data is sent to the target.

[0156] The illustrative examples also enable checkpointing to provide a checkpointing mechanism to select a portion of the stored change data to be applied to a target. Using checkpointing, when the stored change data of a current transaction exceeds a threshold, the amount of data sent to the target can be reduced to a threshold level by sending the stored change data before the current transaction. In addition, if the processing of the change data of the current transaction takes longer than the time required for latency purposes, the stored change data of the previous transaction can be sent by using a checkpoint in the buffer system that identifies the end of the previous transaction of the current transaction.

[0157] Descriptions of different illustrative embodiments have been presented for purposes of illustration and description, and are not intended to be exhaustive or limited to embodiments of the disclosed forms. Different illustrative examples describe components that perform actions or operations. In illustrative embodiments, components may be configured to perform the described actions or operations. For example, a component may have a configuration or design of a structure that provides the component with the ability to perform the actions or operations described as being performed by the component in the illustrative examples. In addition, to the extent that the terms "include," "comprise," "have," "contain," and variations thereof are used herein, these terms are intended to be inclusive as open transition words in a manner similar to the term "comprise," without excluding any additional or other elements.

[0158] The description of various embodiments of the present invention has been presented for the purpose of illustration, but is not intended to be exhaustive or limited to the disclosed embodiments. Not all embodiments will include all the features described in the illustrative examples. In addition, different illustrative embodiments may provide different features compared to other illustrative embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A computer-implemented method for aggregating change data, the computer-implemented method include: receiving, by a computer system, said change data formatted as a sequence of bytes for use by a target of said change data; In response to the change data being used for an add operation, storing, by the computer system, the change data in an area in an add buffer in a buffer system; In response to the change data being used for a delete operation, determining by the computer system whether there is a conflict between the change data and the change data stored in the add buffer; In response to the existence of the conflict, storing, by the computer system, the conflicting position of the region in the add buffer, the add buffer containing the stored change data corresponding to the conflict; as well as In response to when the stored change data is to be applied to the target, the computer system sends the change data stored in the region of the set in which there is no conflict in the add buffer to the target.

2. The computer-implemented method of claim 1 , further comprising: include: In response to the change data being used for the delete operation, the change data is stored by the computer system in a delete buffer in the buffer system.

3. The computer-implemented method of claim 2, in, Sending the stored change data includes: determining, by the computer system, whether a threshold of the buffer system has been reached; identifying, by the computer system, the stored change data to be omitted in an add buffer and a delete buffer based on the region of the set identified as having the conflict using conflicting locations; and The stored change data in the delete buffer and the stored change data in the add buffer that are not identified as omitted are sent to the target.

4. The computer-implemented method of claim 3, in, Sending the stored change data further includes: Metadata indicating the stored change data to be deleted from the target and the stored change data to be added to the target is sent by the computer system.

5. The computer-implemented method of claim 1, in, Determining whether the conflict exists includes: comparing, by the computer system, the unique identifier of the change data with a stored unique identifier of the region of the stored change data in the add buffer; and In response to the unique identifier matching the stored unique identifier of the stored change data, the change data is compared, by the computer system, with the stored change data corresponding to the stored unique identifier to determine whether the conflict exists. 6 . The computer-implemented method of claim 5 , wherein the unique identifier of the change data is a hash of bytes in the change data that make the change data unique.

7. The computer-implemented method of claim 1 , further comprising: include: A unique identifier of the change data and a location of the region within the buffer system are stored by the computer system.

8. The computer-implemented method of claim 2, further comprising: include: A checkpoint is stored by the computer system, wherein the checkpoint identifies an end of a transaction in the buffer system and identifies the region of the set of conflicts that occurred up to the end of the transaction.

9. The computer-implemented method of claim 8, in, Sending the stored change data includes: receiving, by the computer system, a request to roll back the buffer system to the checkpoint; identifying, by the computer system, a set of conflicts detected prior to the checkpoint; identifying, by the computer system, the stored change data to be omitted in the add buffer and the delete buffer based on the region identified as having the set of conflicts detected prior to the checkpoint; and The stored change data that is not identified as omitted and ends at the checkpoint in the add buffer and the delete buffer is sent by the computer system.

10. A computer system, include: a plurality of processor units, wherein the plurality of processor units execute program instructions to: receiving change data formatted as a sequence of bytes used by a target of the change data; In response to the change data being used for an add operation, storing the change data in an area in an add buffer in a buffer system; storing a unique identifier of the change data and a location of the region in an add buffer; In response to the change data being used for a delete operation, determining whether there is a conflict between the change data and the change data stored in the add buffer; In response to the existence of the conflict, storing the conflicting position of the region in the add buffer, the add buffer containing the stored change data corresponding to the conflict in the add buffer; as well as In response to when the stored change data is to be applied to the target, the change data stored in the area of ​​the set where there is no conflict in the add buffer is sent to the target.

11. The computer system according to claim 10, in, The plurality of processor units execute program instructions to: In response to the change data being used for the delete operation, the change data is stored in a delete buffer in the buffer system.

12. The computer system according to claim 11, in, In sending the stored change data, the plurality of processor units execute program instructions to: determining whether a threshold of the buffer system has been reached; identifying the stored change data to be omitted in an add buffer and a delete buffer based on the set of regions identified as having the set of conflicts using conflicting locations; as well as The stored change data in the delete buffer and the stored change data in the add buffer that is not identified as omitted are sent to the target.

13. The computer system according to claim 12, in, In sending the stored change data, the plurality of processor units execute program instructions to: Metadata indicating the stored change data to be deleted from the target and the stored change data to be added to the target is sent.

14. The computer system of claim 10, wherein in determining whether the conflict exists, the plurality of processor units execute program instructions to: comparing the unique identifier of the change data with the stored unique identifier of the region of the stored change data in the add buffer; and In response to the unique identifier matching the stored unique identifier of the stored change data, the change data is compared with the stored change data corresponding to the stored unique identifier to determine whether the conflict exists.

15. The computer system according to claim 14, in, The unique identifier of the variation data is a hash of bytes in the variation data that make the variation data unique.

16. The computer system according to claim 10, in, The plurality of processor units execute program instructions to: A unique identifier of the change data and the location of the region are stored in the buffer system.

17. The computer system according to claim 11, in, The plurality of processor units execute program instructions to: A checkpoint is stored, wherein the checkpoint identifies an end of a transaction in the buffer system and identifies the region of the set of conflicts that occurred up to the end of the transaction.

18. The computer system according to claim 17, in, In sending the stored change data, the plurality of processor units execute program instructions to: receiving a request to roll back the buffer system to the checkpoint; identifying a set of conflicts detected prior to the checkpoint; identifying the stored change data to be omitted in the add buffer and the delete buffer based on the region identified as having the set of conflicts detected prior to the checkpoint; as well as The stored change data that is not identified as omitted and ends at the checkpoint in the add buffer and the delete buffer is sent.

19. A computer program product for aggregating change data, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a computer system to cause the computer system to perform the following method: receiving, by the computer system, the change data formatted as a sequence of bytes, the sequence of bytes being used by a target of the change data; In response to the change data being used for an add operation, storing, by the computer system, the change data in an area in an add buffer in a buffer system; storing, by the computer system, a unique identifier of the changed data and a location of the region in an add buffer; In response to the change data being used for a delete operation, determining by the computer system whether there is a conflict between the change data and the change data stored in the add buffer; storing, by the computer system in response to the existence of the conflict, the conflicting position of the region in the add buffer, the add buffer containing the stored change data corresponding to the conflict in the add buffer; as well as In response to when the stored change data is to be applied to the target, the computer system sends the change data stored in the region of the set in which there is no conflict in the add buffer to the target.

20. The computer program product according to claim 19, further comprising: include: In response to the change data being used for the delete operation, the change data is stored by the computer system in a delete buffer in the buffer system.