What is MongoDB?

MongoDB is a document-oriented NoSQL database. Learn what it is, how TurboStack runs it as a host service, and best practices.

MongoDB is a document-oriented NoSQL database. Instead of storing data in tables of rows and columns like a relational database, it stores flexible, JSON-like documents whose structure can vary from one record to the next. This makes it a natural fit for applications with evolving data models, semi-structured content, or rapidly changing requirements.

Applications talk to MongoDB to store and query collections of documents. It is commonly used for catalogs, user profiles, event and activity data, content management, and any workload where a schema-flexible store is more convenient than a rigid relational schema.

On TurboStack

TurboStack runs MongoDB as a host-level service. Hosted Power provides the server and tunes MongoDB to the needs of the platform. It behaves exactly like upstream MongoDB for your applications.

  • Enabled per host. MongoDB is not on by default. You turn it on for the specific host whose application needs it, from that host's Services tab.

  • Version pinned. You choose the version explicitly (7.0, 8.0 or 8.3) so your database engine stays predictable across deployments and rebuilds. Upgrades go one release at a time.

  • Managed for you. TurboStack provisions, configures, and maintains the service; you focus on your collections and queries rather than the server.

Best practices

  • Pick an explicit major version and keep it consistent across your environments to avoid surprises on upgrade.

  • Design indexes for your most frequent queries - unindexed queries scan whole collections and do not scale.

  • Keep documents reasonably sized and avoid unbounded array growth within a single document.

  • Bind the service to the narrowest network interface that still lets your application reach it.

  • Use authenticated connections and least-privilege database users for each application.

  • Back up regularly and verify that you can restore.