P

ACMO

An Adaptive Cost Modeling and Optimization Framework for Schema-Heterogeneous NoSQL Document Databases

Estimating MongoDB query cost from document structure alone, with no execution traces and no running database.

Query cost estimation in schema-heterogeneous document databases is still an open problem: collections with zero structural entropy make classic entropy-based signals useless, and type drift breaks the assumptions of fixed-schema learned models. ACMO estimates query cost on MongoDB-style collections from document structure and field-level statistics only, so it works before a database is even running.

Key points

  • Evaluated against seven baselines (four document-domain models, three learned ensembles) on five real MongoDB Atlas collections of 5,000 to 50,000 documents: nested, flat, schema-drift and mixed.
  • Lowest mean MAE of all methods (3,282 ms), ahead of CatBoost (3,491 ms); structural and analytical baselines trail by an order of magnitude.
  • Paired significance tests: decisively better than the weaker baselines, and as accurate as the gradient-boosted models at a fraction of their complexity.
  • Cost ordering validated against live, indexed MongoDB execution, with significant rank correlation on four of five collections and a root-cause analysis of the fifth.
  • Trains in under 2.7 seconds without database connectivity, which suits cold-start and post-migration scenarios.