Topic 5 of 5 · 5 min read
Judging AI database stack recommendations
Goal: Find the unsupported claim or unnecessary component in an AI-recommended data stack.
Treat an assistant's database advice as a draft from someone who has not seen your traffic: check each claim against the vendor's current docs and ask of each component, "which access pattern needs this?" A recommendation can be fluent, specific and wrong in three ways.
Check yourself · 1 of 3
An assistant says a database setting limits something to a specific number. What should you do first?
Why it matters
Models are trained on text from different years. They can state a limit that was lifted, a feature that never existed, or a licence that has since changed. They also tend to recommend the stacks that appear most in blog posts, which means more components than a small app needs. A wrong stack costs months, because data stores are the hardest part of a system to swap.
A checklist for a recommendation
- Is each component tied to a pattern? Ask the assistant to map every database to one row of your access-pattern table. A component with no row is a candidate to cut.
- Is each claim in the docs? Look up any feature, limit or default number in the product's current documentation. Invented flags and config options are common.
- Is it current? Check the version in the answer against the latest release notes. Check the licence and hosting terms too, because several well-known data products have changed their licences, which affects whether you can run or resell them.
- Are the trade-offs named? Advice that lists only benefits is a sales page. Ask what you give up: joins, transactions, consistency, operations.
- Does it fit the team? Who is on call for this at 3 a.m.?
Before and after
AI recommendation for a 2-person invoicing app with a few thousand rows: "PostgreSQL for data, Redis for caching, Elasticsearch for search, a vector database for AI features, and Kafka for events. PostgreSQL supports at most 10 tables per database."
Review: the last sentence is false; PostgreSQL has no such limit. Elasticsearch, the vector database and Kafka have no matching pattern. Redis has no measured slow read to cache. Cut to one PostgreSQL, using its full-text search for invoice lookup, and add components when a measured pattern requires them.
Prompt that helps
"For each component, name the access pattern from my table that needs it, the simpler option you rejected, and what I give up by choosing it. Mark any claim you are not sure of."
What goes wrong
- Accepting a number with no source. A limit or a benchmark figure nobody can find in the docs.
- Missing the licence change. The stack becomes impossible to host as planned.
- Cutting nothing. The assistant proposes, nobody removes.
- Asking the assistant to verify itself. It may repeat the same error with more confidence.
Examples
Invented feature
An assistant says to enable auto_shard = true in a database's config. A search of the official configuration reference finds no such setting. Ask for the doc link; if there is none, treat the line as invented and look up how sharding is configured in the documentation.
Five boxes for one app
An answer lists a relational database, a cache, a search engine, a vector store and a queue for a small internal tool with 50 users. Ask which pattern needs each one. The tool needs one relational database; every other component is an operations cost with no pattern behind it.
Key points
- Map every recommended component to one access pattern; a component with no pattern is a candidate to cut.
- Verify each limit, feature and default against the product's current documentation.
- Check version, licence and hosting terms, because both can change after the model's training data.
- Ask for the rejected simpler option and what you give up, so benefits are not the only story.
- Do not accept a numeric claim without a source you can open.
Common mistakes
- Accepting a confident number or feature with no documentation link.
- Skipping licence and version checks on a product the assistant picked.
- Keeping every component the assistant listed.
- Asking the same assistant to confirm its own answer instead of opening the docs.
Check yourself · 2 of 3
Which question best exposes an unnecessary component in a recommended stack?
Check yourself · 3 of 3
Why check the licence of a database an assistant recommends?
Practice items, not counted towards your mastery.
Start here
- Designing Data-Intensive Applications (opens in a new tab)BookPaid
The standard book on storage engines, replication and consistency trade-offs behind every database choice.
- SQLite: Appropriate uses (opens in a new tab)DocsFree
The SQLite authors list where an embedded database fits and where a client/server one is the better tool.
- MongoDB: Data modeling (opens in a new tab)DocsFree
Embedding versus referencing, and the schema design patterns for document stores.