This skill provides comprehensive guidance based on the Alibaba Java Development Manual (P3C) for MySQL databases. It ensures high performance and maintainability across table creation, field naming conventions, SQL query optimization, indexing strategies, and ORM mapping. By integrating these industry-proven best practices, developers can minimize technical debt, avoid common database pitfalls, and ensure data consistency in high-concurrency environments.
主要功能
01SQL performance optimization rules for count functions, subqueries, and joins.
0236 GitHub stars
03Strict table and field naming conventions using snake_case and is_xxx boolean logic.
04Mandatory audit field enforcement including business IDs and timestamp tracking.
05Comprehensive indexing guidelines for unique, prefix, and composite indexes.
06Standardized ORM mapping rules for safe parameter handling and result set mapping.
使用场景
01Reviewing existing SQL queries to identify and fix performance bottlenecks.
02Designing a new production-ready database schema from scratch.
03Configuring MyBatis or iBATIS ORM layers to ensure secure and efficient data access.