In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
one。 Data rows hidden columns
Innodb implements three hidden fields for each row of records
6-byte transaction ID (DB_TRX_ID)
7-byte rollback pointer (DB_ROLL_PTR)
Hidden ID
Transaction 1 modifies the row value process:
X Lock Lock the row-> record redo log-> copy the pre-modified value of the row to undo-> modify the value of the current row, fill in the transaction number, and point the rollback pointer to the pre-modified row in undo log
Transaction 2 modifies the row value process:
As with transaction 1, there are two rows of records in undo log, which are connected by a rollback pointer
II. The process of applying MVCC to RC and RR
RC transaction starts (1). Before executing the SQL statement, output the inactive transaction information in the system to a copy, TRX _ list (2). The user starts to read records at the current SQL, assuming that the read record transaction ID is trx_id_0 (3). Find out the earliest transaction trx_id_1 and the latest transaction trx_id_2 (4) in trx_list. If trx_id_0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.