agentleFS
vaquarkhanvaquarkhan/data-engineering-agent-skills/skills/operational-datastore-selection-relational-and-nosql/SKILL.md

operational-datastore-selection-relational-and-nosql

Skill49 starsChanged 6 months agoMITView on GitHub

Guides agents through choosing relational operational stores such as MySQL versus NoSQL options such as document, key-value, wide-column, or cache-backed systems. Use when deciding where application-adjacent or pipeline-adjacent operational data should live.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not treat datastore selection as a brand preference or trend decision.

    line 20
  2. Distinctive:

    read versus write ratio

    line 26
  3. Distinctive:

    document stores fit when entity shapes vary and document-oriented retrieval dominates

    line 43
  4. Distinctive:

    Check downstream and operational impact.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Operational Datastore Selection Relational And NoSQL

Overview

Use this skill when the real decision is not warehouse modeling, but what operational datastore should hold state, serve requests, or back data-driven application flows. It helps agents choose intentionally between relational systems such as MySQL and PostgreSQL versus NoSQL families such as document, key-value, wide-column, or cache-oriented stores.

When to Use

  • choosing MySQL versus NoSQL for application-facing or service-facing data
  • selecting stores for metadata, idempotency keys, session state, event state, or operational APIs
  • deciding whether flexible schema or strict relational constraints matter more
  • evaluating consistency, scale, and access-pattern trade-offs
  • preventing analytics or pipeline systems from being misused as OLTP stores

Do not treat datastore selection as a brand preference or trend decision.

Workflow

  1. Define the access pattern first. Clarify:
    • read versus write ratio
    • request latency expectations
    • query shapes
    • update frequency
    • retention and archival behavior
  2. Define integrity and consistency needs. Include:
    • transactions
    • joins and relational constraints
    • uniqueness guarantees
    • conflict handling
    • tolerance for eventual consistency
  3. Match the workload to the right store family. Common guidance:
    • relational stores such as MySQL fit well when transactions, constraints, and predictable relational queries matter
    • document stores fit when entity shapes vary and document-oriented retrieval dominates
    • key-value stores fit when lookup by key is primary and access patterns are narrow
    • wide-column stores fit when scale and partition-oriented access dominate
    • caches should accelerate another source of truth, not silently replace one
  4. Check downstream and operational impact. Consider:
    • CDC and replication support
    • backup and restore behavior
    • schema evolution pain
    • observability and operational maturity
    • how analytics or warehouse ingestion will work
  5. Record the trade-off explicitly. A good decision names what the chosen store is not good at.

Common Rationalizations

RationalizationReality
"NoSQL scales better, so we should use it."Scale is only one axis; transactions, operability, and query ergonomics still matter.
"MySQL is too old-fashioned for modern systems."Mature relational systems remain strong choices when consistency and relational integrity are central.
"The schema changes a lot, so we need schemaless storage."Frequent shape change often signals unclear contracts, not necessarily a datastore requirement.

Red Flags

  • a warehouse or lakehouse is being used like an operational key-value store
  • NoSQL is chosen with no explicit access-pattern justification
  • relational transactions are required but omitted from the design
  • a cache is treated as the only source of truth
  • CDC, backup, or migration behavior is unknown

Verification

  • Access patterns and latency needs are explicit
  • Integrity and consistency requirements are named
  • The chosen store family matches the actual workload
  • CDC, backup, migration, and analytics implications are understood
  • Trade-offs and non-goals are documented

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.