摘要 |
<p>A query request message processing method and device for a log-structured data base system, the method comprising: receiving a query request message comprising a primary key of a tuple to be queried and a transaction identifier of the current transaction; according to the query request message, obtaining from the tuple containing the primary key, and satisfying a first specified rule, a tuple with the latest timestamp as the query result; and returning the query result. In order to enable a log-structured database to support transactions and achieve concurrent control, the present invention starts with the query process of a transaction, differentiates the submitted tuples from the tuples not submitted, and at the same time further checks whether the tuples not submitted are being processed by a current transaction, thus preventing the current transaction from finding the tuples being processed by other transactions, achieving isolation of various transactions, and further ensuring the support of transactions by the log-structured database system, and concurrent execution of all transactions without affecting each other.</p> |