Fading Coder

One Final Commit for the Last Sprint

MyCat Database Sharding Strategies

Configuration Rules MyCat sharding requires defining table rules and functions in configuration files. Table Rule Structure <tableRule name="custom-sharding-long"> <rule> <columns>user_id</columns> <algorithm>range-long</algorithm> </rule> </tab...

MySQL Storage Engines and Index Implementation

MySQL Architecture Layers MySQL's architecture comprises four interconnected layers: Network Connection Layer: Manages client connections via thread pooling Core Service Layer: Handles SQL parsing, optimization, and caching Storage Engine Layer: Plugin-based data managemnet system File System Layer:...

Dynamic Table Name Replacement Using MyBatis Interceptors

Business ScenarioFor systems anticipating high data volume growth, database sharding is a common strategy to maintain performance. A typical approach involves appending suffixes to table names (e.g., converting app_user to app_user_202201) to distribute data. To implement this transparently without...

Sharding Design Strategies in Distributed System Architecture

Introduction to Sharding Sharding is a horizontal scaling method where a database is divided into multiple logical partitions, each residing on a separate database instance. This distributes data and workload, enhancing read/write throughput. The Need for Sharding When data volume surpasses a single...