Tag

Transaction

0 views collected around this technical thread.

macrozheng
macrozheng
Jun 13, 2025 · Backend Development

Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It

This article explains a puzzling Spring Boot transaction rollback caused by MyBatis-Plus's saveBatch method, reproduces the error with nested @Transactional calls, analyzes why the rollback flag is set, and offers a practical workaround by replacing the framework batch operation with a custom mapper implementation.

BackendJavaMyBatis-Plus
0 likes · 6 min read
Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It
Java Captain
Java Captain
Jun 10, 2025 · Databases

Master MySQL Performance: Slow Queries, Indexes, Transactions & Replication

This article explains how to locate and analyze MySQL slow queries, understand index structures and types, apply best practices for index creation, handle large pagination, manage transaction isolation and MVCC, and implement master‑slave replication and sharding strategies for high‑performance databases.

Index OptimizationMySQLReplication
0 likes · 13 min read
Master MySQL Performance: Slow Queries, Indexes, Transactions & Replication
Lobster Programming
Lobster Programming
Jun 3, 2025 · Databases

Master MySQL Locks: From Row to Intention Locks Explained with Real Examples

This article explains MySQL InnoDB locking mechanisms—including row, record, gap, next‑key, and intention locks—illustrates each type with SQL statements and performance_schema data, and shows how they interact during concurrent transactions.

ConcurrencyInnoDBLocks
0 likes · 8 min read
Master MySQL Locks: From Row to Intention Locks Explained with Real Examples
Java Captain
Java Captain
May 25, 2025 · Databases

Database Transactions: ACID Properties, Isolation Levels, and Usage in MySQL

This article provides a comprehensive overview of database transactions, explaining ACID properties, transaction states, explicit and implicit transaction control, isolation levels, and how to configure and use them in MySQL with practical SQL examples and code snippets.

ACIDIsolation LevelMySQL
0 likes · 22 min read
Database Transactions: ACID Properties, Isolation Levels, and Usage in MySQL
Java Architect Essentials
Java Architect Essentials
May 20, 2025 · Backend Development

Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend

This article explains how using a custom @DistributeLock annotation together with @Transactional can cause idempotency issues due to aspect execution order, and demonstrates how to prioritize the lock aspect using @Order to ensure the lock is applied before the transaction, with code examples and best‑practice recommendations.

BackendIdempotencyJava
0 likes · 6 min read
Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend
Java Tech Enthusiast
Java Tech Enthusiast
May 12, 2025 · Databases

Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions

This article explains the sequential write process of Undo Log, Redo Log, and Binlog during MySQL transaction execution and commit phases, describes the involved caches, two‑phase commit rationale, and outlines key configuration parameters for each log type.

MySQLTransactionTwo-Phase Commit
0 likes · 10 min read
Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions
Java Tech Enthusiast
Java Tech Enthusiast
May 7, 2025 · Backend Development

Why Redis Increment Returns Null When Using @Transactional with Transaction Support in Spring Boot

The production failure where a customer‑service event creation stopped each morning was traced to RedisTemplate’s increment returning null because @Transactional combined with enabled Redis transaction support caused the command to be queued in a MULTI/EXEC block, which is fixed by using separate non‑transactional and transactional StringRedisTemplate beans.

JavaRedisSpring Boot
0 likes · 11 min read
Why Redis Increment Returns Null When Using @Transactional with Transaction Support in Spring Boot
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 2, 2025 · Databases

Demonstrating MySQL Deadlock with a Practical Example

This article explains MySQL deadlocks by creating a test table, running two concurrent transactions—one using SLEEP to hold a lock and another attempting the same resource—to reproduce a deadlock error, and discusses how this approach aids debugging and understanding of transaction conflicts.

DeadlockMySQLSQL
0 likes · 4 min read
Demonstrating MySQL Deadlock with a Practical Example
php中文网 Courses
php中文网 Courses
Apr 28, 2025 · Databases

Python Database Programming: SQLite and MySQL Basics

This tutorial explains how to use Python's sqlite3 module and MySQL connectors to perform essential database operations such as connecting, creating tables, inserting, querying, updating, deleting records, and managing transactions for both SQLite and MySQL.

MySQLPythonSQL
0 likes · 7 min read
Python Database Programming: SQLite and MySQL Basics
Cognitive Technology Team
Cognitive Technology Team
Apr 19, 2025 · Backend Development

Concurrency Risks of Object Escape in Spring AOP and Correct Advice Ordering

The article explains how Spring AOP can cause object escape leading to concurrency safety problems, describes the impact of asynchronous threads and caching, and provides practical guidance on ordering AOP advices such as distributed lock, @Retryable, and dynamic datasource to avoid business anomalies.

AOPConcurrencyObject Escape
0 likes · 5 min read
Concurrency Risks of Object Escape in Spring AOP and Correct Advice Ordering
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 16, 2025 · Databases

Troubleshooting MySQL Transaction Lock Waits: Diagnosis and Resolution

This article explains how to reproduce a MySQL InnoDB lock‑wait scenario, use system tables such as information_schema.processlist, innodb_trx, sys.innodb_lock_waits and performance_schema to locate the blocking transaction, and finally resolve the issue by killing the offending session, while also providing quick‑check queries and parameter tuning advice.

Database TroubleshootingInnoDBMySQL
0 likes · 9 min read
Troubleshooting MySQL Transaction Lock Waits: Diagnosis and Resolution
Java Captain
Java Captain
Apr 16, 2025 · Backend Development

Design and Implementation of a Generic Asynchronous Processing SDK for Spring Applications

This article describes a generic asynchronous processing SDK built on Spring that leverages transaction events, AOP, and a combination of Kafka, XXL‑Job, and MySQL to provide non‑intrusive, reliable, and idempotent async execution with configurable strategies, security levels, and monitoring dashboards.

BackendJavaSpring
0 likes · 11 min read
Design and Implementation of a Generic Asynchronous Processing SDK for Spring Applications
Cognitive Technology Team
Cognitive Technology Team
Apr 15, 2025 · Backend Development

Common Pitfalls of Spring Transaction Management and How to Avoid Them

This article explains the typical reasons why Spring @Transactional annotations may fail—including AOP proxy limitations, method visibility, self‑invocation, exception handling, propagation settings, async execution, multiple data sources, and database constraints—and provides practical solutions to ensure reliable transaction behavior.

AOPBackendException
0 likes · 6 min read
Common Pitfalls of Spring Transaction Management and How to Avoid Them
Lobster Programming
Lobster Programming
Apr 10, 2025 · Databases

Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination

MySQL employs a two‑phase commit to synchronize InnoDB’s redo log with the server’s binlog, ensuring atomicity during transaction commits and preventing data inconsistencies during crash recovery or replication, while also introducing lock contention, extra I/O, and potential blocking.

MySQLTransactionTwo-Phase Commit
0 likes · 5 min read
Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 4, 2025 · Backend Development

Master Spring Boot Transaction Event Listeners: Code Samples & Real-World Use Cases

This article explains how to decouple business logic using Spring Boot transaction event listeners, demonstrates both manual TransactionSynchronization and @TransactionalEventListener implementations with full code examples, and shows a practical user‑registration scenario that avoids common pitfalls.

Event ListenerJavaSpring Boot
0 likes · 9 min read
Master Spring Boot Transaction Event Listeners: Code Samples & Real-World Use Cases
Lobster Programming
Lobster Programming
Mar 13, 2025 · Backend Development

Why Spring @Transactional Sometimes Fails: 12 Common Pitfalls and Fixes

This article explains how Spring's declarative transaction management works, why the @Transactional annotation can unexpectedly become ineffective, and presents twelve typical scenarios—such as internal method calls, non‑public methods, final/static modifiers, proxy issues, and incorrect propagation settings—along with practical solutions to ensure reliable transaction handling.

AOPBackendJava
0 likes · 12 min read
Why Spring @Transactional Sometimes Fails: 12 Common Pitfalls and Fixes
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 5, 2025 · Databases

Overview of MySQL Transaction, Lock, and Undo Modules – Article Index

This article provides a comprehensive index of a MySQL internals series covering the transaction, lock, and undo modules, detailing each sub‑topic such as transaction initialization, two‑phase commit, various lock types, deadlock handling, and undo log management across numerous linked articles.

Database InternalsInnoDBLock
0 likes · 7 min read
Overview of MySQL Transaction, Lock, and Undo Modules – Article Index
Architecture Digest
Architecture Digest
Mar 3, 2025 · Databases

NewSQL vs Middleware Sharding: A Comparative Analysis of Distributed Databases

This article objectively compares NewSQL distributed databases with traditional middleware‑based sharding solutions, examining their architectures, distributed transaction support, high availability, scaling, SQL capabilities, and maturity to help readers decide which approach best fits their workload and operational constraints.

Distributed DatabasesHigh AvailabilityNewSQL
0 likes · 18 min read
NewSQL vs Middleware Sharding: A Comparative Analysis of Distributed Databases
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 26, 2025 · Databases

MySQL InnoDB Transaction Commit: Undo Segment State Changes and Cleanup Process

The article explains how InnoDB handles transaction commit by modifying Insert and Update Undo segment states, generating a transaction commit number, adding rollback segments to the purge queue, and finally cleaning or caching Undo segments based on their usage and state.

Database InternalsInnoDBMySQL
0 likes · 11 min read
MySQL InnoDB Transaction Commit: Undo Segment State Changes and Cleanup Process