What problem does it solve?
Managing and optimizing databases (both SQL and NoSQL) requires specialized knowledge in querying, administration, performance tuning, and migration. This skill provides comprehensive guidance and scripts for working with PostgreSQL and MongoDB, simplifying tasks from basic CRUD operations to advanced performance checks and backups.
Core Features & Use Cases
- PostgreSQL Management: Guides on administration, advanced queries, performance optimization, and using the
psql CLI.
- MongoDB Operations: References for CRUD operations, aggregation pipelines, indexing, and using MongoDB Atlas.
- Database Utilities: Scripts for automated database backups, migrations, and performance checks.
- Use Case: A developer needs to optimize a slow PostgreSQL query and then migrate a MongoDB database to a new server. This skill can provide Python scripts for performance checks and migration, along with detailed references on PostgreSQL query optimization and MongoDB Atlas best practices, ensuring efficient and reliable database operations.
Quick Start
Optimize the following PostgreSQL query for better performance: SELECT * FROM users WHERE created_at < '2023-01-01' ORDER BY last_login DESC;