Advanced MyBatis-Plus Features: Type Handlers, Auto-Filling, Optimistic Locking, and Multi-DataSource Configuration
1. Field Type Handlers
In certain scenarios, entity classes may utilize Map collections to receive data from frontend applications. However, when storing this data in databases, JSON format is often used, which本质上 is a string stored as a VARCHAR type. Field type handlers facilitate the conversion between Map types in entity classes and VARC ...
Posted on Thu, 07 May 2026 15:23:20 +0000 by 01hanstu
Optimizing Oracle Undo Tablespace Configuration and Monitoring
Identifying Undo Tablespace Issues
When an Oracle database's undo tablespace consistently exceeds 85% utilization despite repeated expansions, it raises questions about actual space requirements and proper configuraton. Key metrics to examine:
SELECT a.tablespace_name,
ROUND(a.bytes/1024/1024/1024, 0) "total_GB",
ROUND(( ...
Posted on Thu, 07 May 2026 10:24:19 +0000 by dicamille
MySQL Locking Mechanisms and Concurrency Control Strategies
Locks coordinate concurrent thread access to shared resources. In relational databases, they prevent data corruption during simultaneous reads and writes. MySQL delegates lock implementation to storage engines, resulting in distinct behaviors. MyISAM and MEMORY rely exclusively on table-level locking. InnoDB supports both table and row-level lo ...
Posted on Thu, 07 May 2026 08:39:32 +0000 by Zoxive
Database Systems Overview and MySQL Deployment on Linux
Data represents stored information in various forms such as images, text, spreadsheets, attachments, videos, application packages, user account records, and order details. A Database Management System (DBMS) organizes, stores, and retrieves this data efficiently. The major categories include:
RDBMS (Relational)
NoSQL (Non-relational)
NewSQL (D ...
Posted on Thu, 07 May 2026 06:10:05 +0000 by R_P
Introduction to Database Systems
Overview of Data Management
Evolution of Data Management
Manual Handling Era
File Systems Era
Database Systems Era
Core Concepts
Data
Records describing entities (text, graphics, images, audio)
Data alone lacks meaning without semantic interpretation; data and semantics are inseparable
Database (DB)
A large collection of structured, shared d ...
Posted on Thu, 07 May 2026 04:56:06 +0000 by andrin
Database Read-Write Splitting Implementation
Core Principles of Read-Write Separation
Database read-write splitting distributes query and modification operations across separate database instances to enhance system performance and scalability. This architectural pattern directs write operations to a primary instance while routing read queries to one or multiple replica instances.
Key Comp ...
Posted on Thu, 07 May 2026 04:51:32 +0000 by the elegant
Automating MyBatis Code Generation with Maven and Plugin Configuration
Setting Up the Maven Project
Begin by establishing a standard Maven project structure to house the generator configuration and dependencies.
Configuring Maven Dependencies and Build Plugin
Update the pom.xml to include the necessary libraries for MyBatis and the generator tool. The configuration below specifies the Maven plugin responsible f ...
Posted on Thu, 07 May 2026 03:30:36 +0000 by bodzan
MySQL Advanced Features: Views, Transactions, Triggers, and Performance Optimization
Views in MySQL
Views are virtual tables that don't占用 any physical storage. When querying a view, MySQL retrieves data dynamically from the underlying base tables.
Key Characteristics
Modifications to a view propagate to the underlying base tables
Changes to base tables are visible through the view when querying
Views typically shouldn't be m ...
Posted on Thu, 07 May 2026 02:04:26 +0000 by recklessgeneral