Movatterモバイル変換


[0]ホーム

URL:


Docs Menu

What is MongoDB?

MongoDB is a document database designed for ease of applicationdevelopment and scaling.

You can run MongoDB in the following environments:

  • MongoDB Atlas: The fullymanaged service for MongoDB deployments in the cloud

Get started with MongoDB Atlas
Homepage hero image
What You Can Do

Work with your data in MongoDB

1

Deploy MongoDB

Create a cluster in the MongoDB Atlas UI or the Atlas CLIquickly and easily. To learn more, seeCreate a Clusterin the MongoDB Atlas documentationandGet Started with Atlas in the Atlas CLIdocumentation.

For self-hosted deployments,seeReplication in the MongoDB manualto create a replicaset.

2

Connect to your deployment

Access deployments in theMongoDB Atlas UI or connect withdrivers or theMongoDB Shell (mongosh) in the MongoDBmanual.

To learn more, seeFind Your Connection String in the MongoDB manual.

3

Insert, query, update, or delete documents

Perform CRUD operations in the MongoDB Atlas UI or by using theMongoDB Query API - with or without transactions.

To learn more, seeCreate, View, Update, and Delete Documents in the MongoDB Atlas documentation andMongoDB CRUD Operations in the MongoDB manual.

4

Model your data

Design your data schema to support frequent access patterns.You can update or enforce your schema at any point.

To learn more, seeData Modeling Introduction in the MongoDB manual.

➜ atlas setup
?Do you want to setup yourAtlas databasewithdefault settings? (Y/n)
➜ Y
We are deployingCluster9876543...
Please store your database authentication access detailsin a secure location.
DatabaseUserUsername:Cluster9876543
DatabaseUserPassword: abcdef12345
Creating your cluster... [Its safe to'Ctrl + C']
1

Import your data

Import data from a CSV or JSON file with database tools.

To learn more, seeMigrate or Import Data in the MongoDB Atlasdocumentation andmongoimport in the database tools documentation.

2

Aggregate your data

Use aggregation pipelines to process your data in multiplestages and return the computed results. You canpreview the results at each pipeline stage when yourun aggregation pipelines in MongoDB Atlas.

To learn more, seeRun Aggregation Pipelines in the MongoDB Atlas documentationandAggregation Operations in the MongoDB manual.

test> db.orders.insertMany([
{"item" :"almonds","price" :12,"quantity" :2 },
{"item" :"pecans","price" :20,"quantity" :1 },
])
test> db.inventory.insertMany([
{"sku" :"almonds","description":"product 1","instock" :120 },
{"sku" :"cashews","description":"product 3","instock" :60 },
{"sku" :"pecans","description":"product 4","instock" :70 }
])
test> db.orders.aggregate([
{$match: {price: {$lt:15 } } },
{$lookup: {
from:"inventory",
localField:"item",
foreignField:"sku",
as:"inventory_docs"
} },
{$sort: {price:1 } },
])
1

Authenticate a client

Verify the identity of a user, replica set member, orsharded cluster member with authentication.

To learn more, seeAtlas UI Authenication in the MongoDB Atlas documentationandAuthentication in the MongoDBmanual.

2

Control access to your database

Enable Role-Based Access Controls to manage user privilegeson your entire database cluster or individual collections.

To learn more, seeAtlas UI Authorization in the MongoDB Atlas documentationandRole-Based Access Controlsin the MongoDB manual.

3

Encrypt your most sensitive data

Client-Side Field Level Encryption protects data while it isin-use by the database. Fields are encrypted before theyleave your application, protecting them over the network, inmemory and at rest.

To learn more, seeClient-Side Field Level Encryption in the MongoDB manual.

MongoDB Security
1

Create a cluster

Create a free cluster, an auto-scaling cluster, or aserverless instance in the MongoDB Atlas UI. To learnmore, seeChoose a Cluster Type in the MongoDB Atlasdocumentation.

For self-hosted deployments, provide redundancy andresilience for your database by deploying a replica set. Tolearn more, seeReplication in theMongoDB manual.

2

Scale out your database

Use sharding to horizontally scale your database or toensure location-based separation of data.

To learn more, seeShard a Collection in the MongoDB Atlasdocumentation andShardingin the MongoDB manual.

MongoDB Deploy and Scale
Related Products & Resources

Go Further with MongoDB

Explore libraries and tools for MongoDB.

MongoDB Atlas icon

Use MongoDB in your application's language

Learn about Drivers

MongoDB University icon

Visually explore your data with MongoDB Compass

View Compass Docs

MongoDB Server icon

Manage and monitor your deployments

View Ops Manager



[8]ページ先頭

©2009-2025 Movatter.jp