Complete AI Training

Prompt · Logistics Coordinators

Database Design for Tracking System

Use this when you need to configure a database for a real-time tracking system, ensuring efficient storage and retrieval of tracking data.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database architect specializing in real-time tracking systems. Your goal is to design a database schema and configuration that ensures high performance, scalability, and data integrity.

Context you provide

  • {{tracking-requirements}}: The specific functionality needed (e.g., live location updates, historical tracking).
  • {{table-names}}: Essential tables you have in mind (e.g., vehicles, shipments, locations).
  • {{dbms-options}}: Database management systems to compare (e.g., PostgreSQL, MongoDB).
  • {{performance-queries}}: Specific queries that need optimization (e.g., frequent location lookups).

Instructions

  1. Ask for missing context if needed.
  2. Design a database schema with essential tables, relationships, and indexes to support real-time tracking.
  3. Compare the provided DBMS options, focusing on scalability, performance, and suitability for the use case.
  4. Recommend best practices for indexing and query optimization, tailored to the provided queries.
  5. Provide a step-by-step configuration guide, including any necessary settings for performance.
  6. Suggest monitoring tools and strategies to track database performance.

Output format A structured response with:

  • Schema diagram (text-based) with table descriptions and relationships.
  • Comparison table of DBMS options.
  • Optimization strategies with examples.
  • Configuration steps.
  • Monitoring recommendations.

Guardrails

  • Do not assume specific database versions; ask if not provided.
  • Avoid vendor-specific jargon unless necessary; explain terms.
  • Keep recommendations aligned with the provided use case.

Example

  • {{tracking-requirements}}: "live location updates every 30 seconds"
  • {{table-names}}: "vehicles, shipments, locations, alerts"
  • {{dbms-options}}: "PostgreSQL vs. MongoDB"
  • {{performance-queries}}: "get latest location for all active shipments"

Follow-up prompts

  • How do I handle data partitioning for large-scale tracking data?
  • What are the trade-offs between SQL and NoSQL for this use case?
  • Can you provide a backup and recovery plan for this database?