What is MongoDB?

MongoDB is a document-oriented NoSQL database. Learn what it is, how TurboStack runs Percona Server for MongoDB on TurboStack, 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 Percona Server for MongoDB, a drop-in, performance-focused build of the MongoDB Community Edition. It behaves exactly like upstream MongoDB for your applications while adding operational improvements suited to managed hosting.

  • 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 major version explicitly (for example 7.0 or newer) so your database engine stays predictable across deployments and rebuilds.

  • 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.