Tagged articles

Transaction

415 articles · Page 5 of 5
ITPUB
ITPUB
Jun 6, 2017 · Databases

Three Ways to Use Python with MySQL: Procedural, OOP, and Modular Approaches

This tutorial explains how to operate MySQL from Python using three different techniques—plain procedural code, object‑oriented classes, and modular imports—while covering __name__ handling, command‑line arguments, transaction management, and practical banking transfer examples.

PythonTransactionpymysql
0 likes · 6 min read
Three Ways to Use Python with MySQL: Procedural, OOP, and Modular Approaches
Architecture Digest
Architecture Digest
May 21, 2017 · Backend Development

Understanding RocketMQ: Key Features, Implementation Principles, and Best Practices

This article explains RocketMQ's core features—including ordered and duplicate message handling, transaction messages, producer and consumer mechanisms, storage architecture, indexing, subscription models, and practical best‑practice recommendations—while providing code examples and design insights for building scalable, high‑throughput distributed messaging systems.

DuplicationJavaOrdering
0 likes · 23 min read
Understanding RocketMQ: Key Features, Implementation Principles, and Best Practices
Qunar Tech Salon
Qunar Tech Salon
Apr 6, 2017 · Databases

Understanding Timestamp and exec_time in MySQL Binlog Events

This article explains how MySQL binlog timestamps are derived from the THD start_time, why all events in a transaction share the same timestamp, how exec_time is calculated, and demonstrates the effect of autocommit and manual commit on binlog timing through concrete examples and source code analysis.

BinlogGTIDTransaction
0 likes · 10 min read
Understanding Timestamp and exec_time in MySQL Binlog Events
ITPUB
ITPUB
Mar 11, 2017 · Databases

How Does MySQL InnoDB Lock Rows? Deep Dive into MVCC, 2PL, and Deadlocks

This article explains MySQL InnoDB's locking mechanisms—including MVCC snapshot vs. current reads, two‑phase locking, isolation levels, lock types, GAP locks, and deadlock scenarios—by analyzing simple and complex SQL examples and showing how different index and isolation configurations affect lock acquisition.

DeadlockInnoDBLocking
0 likes · 25 min read
How Does MySQL InnoDB Lock Rows? Deep Dive into MVCC, 2PL, and Deadlocks
dbaplus Community
dbaplus Community
Jan 4, 2017 · Databases

Unveiling InnoDB’s Transaction Struct: 63 Variables Explained

This article dissects the InnoDB transaction structure defined in storage/innobase/include/trx0trx.h, detailing each of the 63 variables—including their types, purpose, and interaction with MySQL’s transaction coordinator—so readers can grasp how InnoDB ensures data consistency and manages transaction state.

InnoDBTransactiondatabase
0 likes · 21 min read
Unveiling InnoDB’s Transaction Struct: 63 Variables Explained
Java Backend Technology
Java Backend Technology
Oct 25, 2016 · Databases

Why Locks Matter: Pessimistic vs Optimistic Concurrency Control Explained

This article explains why locks are needed in multi‑user environments, describes common conflict types such as lost updates and dirty reads, compares pessimistic and optimistic locking mechanisms, shows practical implementations with version numbers and SQL Server locks, and presents a classic financial‑system case study.

Transactionoptimistic lockpessimistic lock
0 likes · 8 min read
Why Locks Matter: Pessimistic vs Optimistic Concurrency Control Explained
Java Backend Technology
Java Backend Technology
Oct 24, 2016 · Databases

Understanding Database Isolation Levels and ACID Properties

This article explains the four MySQL isolation levels, their effects such as dirty reads, non‑repeatable reads and phantom reads, shows how to view and change the isolation level, and reviews the ACID principles of atomicity, consistency, isolation, and durability.

ACIDTransactionisolation-level
0 likes · 5 min read
Understanding Database Isolation Levels and ACID Properties
Java High-Performance Architecture
Java High-Performance Architecture
Jan 12, 2016 · Backend Development

Refactoring a Legacy Transaction System to Java: Strategies and Process

Facing high maintenance costs, complex business demands, and costly Microsoft tech, a company migrated its five‑year‑old transaction platform to Java, employing phased refactoring, comparative testing, and traffic‑splitting to ensure correctness, minimal impact, and a smooth, zero‑downtime rollout with centralized configuration and logging.

System DesignTransactionbackend
0 likes · 5 min read
Refactoring a Legacy Transaction System to Java: Strategies and Process
dbaplus Community
dbaplus Community
Nov 19, 2015 · Databases

Understanding Oracle Undo and Redo: Deep Dive into Transaction Mechanics

This article explains the internal structures and roles of Oracle undo and redo logs in transaction processing, walks through practical experiments that dissect undo segment headers, undo blocks, undo chains, redo records, fast‑commit behavior, and the true nature of DELETE operations, and shows how these insights help diagnose ORA‑600 startup failures.

Database InternalsOracleRedo
0 likes · 14 min read
Understanding Oracle Undo and Redo: Deep Dive into Transaction Mechanics
Architect
Architect
Nov 7, 2015 · Databases

Design and Implementation of the NewSQL Distributed Database TiDB

This article presents a comprehensive technical overview of TiDB, a NewSQL distributed database, covering its architecture, SQL layer, KV engine, distributed transaction mechanisms, code implementation in Go, open‑source practices, and future roadmap.

GoKV storeNewSQL
0 likes · 23 min read
Design and Implementation of the NewSQL Distributed Database TiDB
21CTO
21CTO
Aug 14, 2015 · Backend Development

Ensuring Data Consistency: From Local Transactions to Distributed 2PC and Message Queues

This article explores how to maintain data consistency across services by using local transactions, two‑phase commit distributed transactions, and reliable message‑queue patterns, illustrating each method with an Alipay‑to‑YuEBao transfer example and discussing their trade‑offs.

Data ConsistencyMessage QueueTransaction
0 likes · 11 min read
Ensuring Data Consistency: From Local Transactions to Distributed 2PC and Message Queues
MaGe Linux Operations
MaGe Linux Operations
Jan 12, 2015 · Databases

Why Does ALTER TABLE Hang? Understanding MySQL Metadata Locks

This article explains why ALTER TABLE statements can become blocked by MySQL’s metadata locking, describes the underlying mechanisms, outlines common scenarios that cause “Waiting for table metadata lock,” and offers practical steps to diagnose and avoid such lock contention.

ALTER TABLETransactionmetadata lock
0 likes · 8 min read
Why Does ALTER TABLE Hang? Understanding MySQL Metadata Locks