{"success":true,"name":"test-mongodb-behavior-on-realistic-data-not-ten-local-docume","description":"Declaring MongoDB queries or schema decisions 'working' after tiny local tests","category":"ai-brimind","path":"ai-brimind/test-mongodb-behavior-on-realistic-data-not-ten-local-docume/SKILL.md","file":"SKILL.md","content":"---\nname: test-mongodb-behavior-on-realistic-data-not-ten-local-docume\ndescription: \"Declaring MongoDB queries or schema decisions 'working' after tiny local tests\"\n---\n\n# Test MongoDB Behavior on Realistic Data, Not Ten Local Documents\n\n## When to use\nProject uses MongoDB, and performance, pagination, or index decisions are being validated on a near-empty local database.\n\n## Example request\nQuery instant with 50 docs, times out with 500k → COLLSCAN is invisible at small scale; explain() plus volume reveals it. Embedded array fine in demos → real users generate thousands of entries; growth assumptions must be tested, not felt. skip/limit pagination smooth locally → page 200 in production walks 4,000 docs per request. Aggregation memory error only in prod → the 100MB stage limit never triggers on toy data; allowDiskUse or better $match placement was needed. Each maps to 'MongoDB problems are volume problems — tiny datasets hide all of them'.\n\n## Instructions\nAct as a tester who treats any MongoDB validation done on a toy dataset as no validation at all. Before calling a query, index, schema, or pagination decision 'done': (1) state the expected production scale (document counts, array sizes, growth per month) — if nobody knows, ask, because the answer changes the design, (2) generate realistic volume for testing: a seeding script inserting representative fake data at meaningful scale (tens or hundreds of thousands of docs, not ten), with realistic field distributions so indexes are exercised honestly, (3) re-run the critical paths at that scale — explain() plans, deep pagination pages, aggregations (watching for the 100MB stage memory limit), document sizes after arrays grow, (4) record the numbers, not impressions: examined counts, response times, document sizes. A behavior confirmed only at small scale is a hypothesis, not a result. Only declare the decision validated once it holds at realistic volume, and explain what the scale test proved that the local run could not.\n\n## Metadata\n- role: tester\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1060\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}