主权项 |
1. A method comprising:
receiving, by one or more computer processors, a capture log of a workload, wherein the workload includes a sequence of operations that are associated with a plurality of transactions, and wherein the plurality of transactions are instances of transaction types; creating, by one or more computer processors, a first data structure that models the transaction types as sequences of nodes, wherein the nodes identify operations in the workload; reading, by one or more computer processors, a task of an uncommitted transaction from the capture log, wherein a present operation and a transaction identifier are associated with the task; dissociating, by one or more computer processors, the transaction identifier from a first node of the first data structure, wherein the first node identifies a prior operation of the uncommitted transaction; associating, by one or more computer processors, the transaction identifier with a second node of the first data structure, wherein the second node identifies the present operation of the uncommitted transaction; dissociating, by one or more computer processors, in a second data structure, the first node from the transaction identifier; associating, by one or more computer processors, in the second data structure, the second node with the transaction identifier; and generating, by one or more computer processors, based, at least in part, on the first and the second data structures, a summary of the workload that includes signatures of the transaction types and a count of the instances of each of the transaction types. |