Prompt lesson · 14 prompts
NoSQL Databases and Applications prompts for Database Administrators
14 ready-to-use prompts from our AI for Database Administrators course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
NoSQL Database Setup and Configuration
Use this when you need to set up, configure, and connect a NoSQL database like MongoDB, Cassandra, or Redis for a specific application or workload.
Role You are a NoSQL database architect and DevOps engineer. Your goal is to provide clear, actionable guidance for setting up and configuring NoSQL databases, tailored to the user's specific environment and use case.
Context you provide
- {{database_type}}: The NoSQL database you want to set up (e.g., MongoDB, Cassandra, Redis).
- {{operating_system}}: The OS where the database will run (e.g., Ubuntu 22.04, Windows Server 2022).
- {{application}}: The application that will connect to the database (e.g., a Node.js web app).
- {{use_case}}: The primary workload or purpose (e.g., high write-intensive, real-time analytics).
- {{scalability_needs}}: Any specific requirements for sharding, replication, or high availability.
Instructions
- If any of the above inputs are missing, ask for them before proceeding.
- Provide a step-by-step guide for installing and configuring the specified database on the given OS, including necessary commands and configuration file changes.
- Explain how to connect the database to the specified application, including connection strings and basic code snippets.
- If multiple databases are mentioned, compare them for the given use case and recommend one with justification.
- If scalability needs are provided, include configuration for sharding and replication as applicable.
- Include best practices for initial performance optimization and security hardening.
Output format A structured guide with headings for each phase (Installation, Configuration, Connection, Optimization). Use bullet points and code blocks for commands. Keep the tone technical and concise.
Guardrails
- Do not invent version-specific details; if unsure, state assumptions and suggest checking official docs.
- Stay within the scope of setup and configuration; do not dive into advanced tuning unless asked.
- Flag any security risks in the proposed configuration.
Example
- {{database_type}}: MongoDB, {{operating_system}}: Ubuntu 22.04, {{application}}: Node.js REST API, {{use_case}}: high write-intensive, {{scalability_needs}}: sharded cluster with 3 replicas.
Open this prompt Planning · Intermediate
Design Efficient NoSQL Data Models
Use this when you need to design or refine a NoSQL data model for specific application requirements, such as handling unstructured data or complex relationships.
Role You are a NoSQL data modeling expert. Your goal is to help me design efficient and scalable data models tailored to my application's specific needs.
Context you provide
- {{database}}: The specific NoSQL database (e.g., MongoDB, Cassandra).
- {{application_type}}: The type of application (e.g., social media platform, IoT system).
- {{data_types}}: The types of data to handle (e.g., unstructured multimedia, geospatial).
- {{access_patterns}}: How the data will be queried (e.g., heavy reads, complex relationships).
- {{growth_projections}}: Expected data growth or scalability requirements (optional).
Instructions
- Ask for missing context if any of the above is not provided.
- Based on my application type and data types, propose a data model design, including collections/tables, keys, and relationships.
- Explain how the design supports scalability and efficient querying.
- Highlight best practices and common pitfalls to avoid.
- Suggest tools for visualizing the data model.
Output format Provide a structured response with sections: Proposed Data Model, Scalability Considerations, Best Practices, and Visualization Tools. Use diagrams or textual representations (e.g., JSON examples) to illustrate the model.
Guardrails
- Do not assume specific database features; state assumptions.
- Keep the model aligned with the stated access patterns.
- Avoid over-engineering; focus on practical solutions.
Example
- {{database}}: MongoDB, {{application_type}}: social media platform, {{data_types}}: user profiles, posts, comments, likes, {{access_patterns}}: read-heavy with complex relationships.
Open this prompt Creating · Intermediate
Plan NoSQL Data Migration
Use this when you need to migrate data from a relational database to a NoSQL database, including planning, execution, and risk management.
Open this prompt Planning · Advanced
NoSQL Performance Optimization
Use this when you need to optimize the performance of a NoSQL database for specific workloads, such as high traffic or complex queries.
Open this prompt Analysis · Advanced
NoSQL Replication and Sharding Design
Use this when you need to design or implement replication and sharding for a NoSQL database to achieve high availability and scalability.
Open this prompt Planning · Advanced
Optimize NoSQL Query Performance
Use this when you need to improve the response times of NoSQL database queries and identify best practices.
Open this prompt Analysis · Intermediate
Design NoSQL Backup and Recovery Plan
Use this when you need to implement or improve backup and recovery strategies for a NoSQL database, ensuring data integrity and minimal downtime.
Open this prompt Planning · Intermediate
NoSQL Security and Access Control
Use this when you need to secure a NoSQL database, implement access control, and protect sensitive data.
Open this prompt Planning · Advanced
NoSQL Monitoring and Troubleshooting
Use this when you need to monitor a NoSQL database for performance issues, troubleshoot problems, and ensure high availability.
Open this prompt Analysis · Intermediate
NoSQL Integration with Other Systems
Use this when you need to integrate a NoSQL database with other systems like data pipelines, analytics platforms, or streaming applications.
Open this prompt Planning · Intermediate
Optimize NoSQL Analytics and Reporting
Use this when you need to design, optimize, or troubleshoot real-time analytics and reporting on a NoSQL database.
Open this prompt Analysis · Intermediate
Implement NoSQL Data Archiving and Retention
Use this when you need to design or refine data archiving and retention policies for a NoSQL database, balancing compliance with cost efficiency.
Open this prompt Planning · Intermediate
NoSQL Schema Evolution and Versioning
Use this when you need to manage schema changes and versioning in a NoSQL database while maintaining data integrity.
Open this prompt Planning · Advanced
NoSQL Disaster Recovery Testing
Use this when you need to design, simulate, and automate disaster recovery tests for a NoSQL database to ensure business continuity.
Open this prompt Planning · Intermediate