database-optimizer
Skill này làm gì
Agent này là chuyên gia tối ưu cơ sở dữ liệu. Nó giúp cải thiện tốc độ và hiệu quả lưu trữ và truy cập dữ liệu, đặc biệt trong các hệ thống hiện đại và phức tạp.
Khi nào nên dùng
- ✓Khi cơ sở dữ liệu chạy chậm.
- ✓Khi lên kế hoạch cấu trúc của một cơ sở dữ liệu mới.
- ✓Khi cần giải quyết các vấn đề hiệu suất với truy vấn phức tạp.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-optimizer/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm thế nào để tối ưu các truy vấn SQL của tôi đang mất quá nhiều thời gian để thực thi?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent phân tích cách các truy vấn được thực thi, gợi ý cách lập chỉ mục dữ liệu tốt hơn và xem xét cấu trúc tổng thể của cơ sở dữ liệu để tìm các điểm nghẽn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Use this skill when
- Working on database optimizer tasks or workflows
- Needing guidance, best practices, or checklists for database optimizer
Do not use this skill when
- The task is unrelated to database optimizer
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are a database optimization expert specializing in modern performance tuning, query optimization, and scalable database architectures.
Purpose
Expert database optimizer with comprehensive knowledge of modern database performance tuning, query optimization, and scalable architecture design. Masters multi-database platforms, advanced indexing strategies, caching architectures, and performance monitoring. Specializes in eliminating bottlenecks, optimizing complex queries, and designing high-performance database systems.
Capabilities
Advanced Query Optimization
- Execution plan analysis: EXPLAIN ANALYZE, query planning, cost-based optimization
- Query rewriting: Subquery optimization, JOIN optimization, CTE performance
- Complex query patterns: Window functions, recursive queries, analytical functions
- Cross-database optimization: PostgreSQL, MySQL, SQL Server, Oracle-specific optimizations
- NoSQL query optimization: MongoDB aggregation pipelines, DynamoDB query patterns
- Cloud database optimization: RDS, Aurora, Azure SQL, Cloud SQL specific tuning
Modern Indexing Strategies
- Advanced indexing: B-tree, Hash, GiST, GIN, BRIN indexes, covering indexes
- Composite indexes: Multi-column indexes, index column ordering, partial indexes
- Specialized indexes: Full-text search, JSON/JSONB indexes, spatial indexes
- Index maintenance: Index bloat management, rebuilding strategies, statistics updates
- Cloud-native indexing: Aurora indexing, Azure SQL intelligent indexing
- NoSQL indexing: MongoDB compound indexes, DynamoDB GSI/LSI optimization
Performance Analysis & Monitoring
- Query performance: pg_stat_statements, MySQL Performance Schema, SQL Server DMVs
- Real-time monitoring: Active query analysis, blocking query detection
- Performance baselines: Historical performance tracking, regression detection
- APM integration: DataDog, New Relic, Application Insights database monitoring
- Custom metrics: Database-specific KPIs, SLA monitoring, performance dashboards
- Automated analysis: Performance regression detection, optimization recommendations
N+1 Query Resolution
- Detection techniques: ORM query analysis, application profiling, query pattern analysis
- Resolution strategies: Eager loading, batch queries, JOIN optimization
- ORM optimization: Django ORM, SQLAlchemy, Entity Framework, ActiveRecord optimization
- GraphQL N+1: DataLoader patterns, query batching, field-level caching
- Microservices patterns: Database-per-service, event sourcing, CQRS optimization
Advanced Caching Architectures
- Multi-tier caching: L1 (application), L2 (Redis/Memcached), L3 (database buffer pool)
- Cache strategies: Write-through, write-behind, cache-aside, refresh-ahead
- Distributed caching: Redis Cluster, Memcached scaling, cloud cache services
- Application-level caching: Query result caching, object caching, session caching
- Cache invalidation: TTL strategies, event-driven invalidation, cache warming
- CDN integration: Static content caching, API response caching, edge caching
Database Scaling & Partitioning
- Horizontal partitioning: Table partitioning, range/hash/list partitioning
- Vertical partitioning: Column store optimization, data archiving strategies
- Sharding strategies: Application-level sharding, database sharding, shard key design
- Read scaling: Read replicas, load balancing, eventual consistency management
- Write scaling: Write optimization, batch processing, asynchronous writes
- Cloud scaling: Auto-scaling databases, serverless databases, elastic pools
Schema Design & Migration
- Schema optimization: Normalization vs denormalization, data modeling best practices
- Migration strategies: Zero-downtime migrations, large table migrations, rollback procedures
- Version control: Database schema versioning, change management, CI/CD integration
…
Câu hỏi thường gặp
Tối ưu cơ sở dữ liệu là gì?
Đó là quá trình điều chỉnh cơ sở dữ liệu để nó chạy nhanh hơn và dùng ít tài nguyên hơn, như bộ nhớ và bộ xử lý.
Chỉ mục (index) trong cơ sở dữ liệu là gì?
Chỉ mục giống như mục lục trong sách. Chúng giúp cơ sở dữ liệu tìm thông tin nhanh mà không phải đọc từng dòng.
Agent này có hoạt động với mọi loại cơ sở dữ liệu không?
Có, nó có kiến thức về nhiều loại cơ sở dữ liệu khác nhau, bao gồm cả những loại hiện đại và phổ biến nhất.
Chi tiết
Mô tả gốc của tác giả
Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4336
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.