CP1 What is MongoDB?

2024-06-18 23:08
文章标签 mongodb cp1

本文主要是介绍CP1 What is MongoDB?,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

What is the MongoDB Database?

Collection - an organized store of documents in MongoDB usually with common fields between documents. There can be many collections per database and many documents per collection.

Why is MongoDB a NoSQL database?

Because it uses a structured way to store  and access data

Because it does not utilize tables,rows and columns to organize data

What is a Document in MongoDB?

Document - a way to organize and store data as a set of field-value pairs

Field - a unique identifier for a datapoint

Value - data related to a given identifier

Collection - an organized store of documents in MongoDB,usually with common fields between documents. There can be many collections per database and many documents per collection.

Select the statement that together help build the most complete definition of the MongoDB database:

The MongoDB database is an organized way to store and access data.

MongoDB is a NoSQL database that use documents to store data in an organized way.

What is a Document?

In MongoDB how does a document relate to a collection?

Collections consist of one or many documents

In a MongoDB Document what is the role of fields and values?

Each fields has a value associated with it

A filed is a unique identifier for a specific datapoint.

What is MongoDB Atlas?

Replica Set - a few connected machines that store the same data to ensure that if something happens to one of the machines the data will remain intact.Comes from the word replicate - to copy something.

Instance - a single machine locallyu or  in the cloud , running a certain software, in our case it is the MongoDB database.

Cluster - group of servers that store your data.

How is MongoDB Altas related to MongoDB the Database?

Atlas has many tools and services within in that are built specifically for the MongoDB Database.

They both are MongoDB products.

With Username and Password selected, create a user for your database with the following username and password:

  • username: m001-student
  • password: m001-mongodb-basics

这篇关于CP1 What is MongoDB?的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1073317

相关文章

Go Mongox轻松实现MongoDB的时间字段自动填充

《GoMongox轻松实现MongoDB的时间字段自动填充》这篇文章主要为大家详细介绍了Go语言如何使用mongox库,在插入和更新数据时自动填充时间字段,从而提升开发效率并减少重复代码,需要的可以... 目录前言时间字段填充规则Mongox 的安装使用 Mongox 进行插入操作使用 Mongox 进行更

使用Python实现操作mongodb详解

《使用Python实现操作mongodb详解》这篇文章主要为大家详细介绍了使用Python实现操作mongodb的相关知识,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录一、示例二、常用指令三、遇到的问题一、示例from pymongo import MongoClientf

使用MongoDB进行数据存储的操作流程

《使用MongoDB进行数据存储的操作流程》在现代应用开发中,数据存储是一个至关重要的部分,随着数据量的增大和复杂性的增加,传统的关系型数据库有时难以应对高并发和大数据量的处理需求,MongoDB作为... 目录什么是MongoDB?MongoDB的优势使用MongoDB进行数据存储1. 安装MongoDB

生产mongodb 分片与集群 方案

链接:http://my.oschina.net/pwd/blog/411439#navbar-header 注:主要是有一键安装的脚本可以借鉴

mongodb基本命令和Java操作API示例

1.Mongo3.2 java API示例:http://www.cnblogs.com/zhangchaoyang/articles/5146508.html 2.MongoDB基本命:http://www.cnblogs.com/xusir/archive/2012/12/24/2830957.html 3.java MongoDB查询(一)简单查询: http://www.cnblogs

使用jetty和mongodb做个简易文件系统

使用jetty和mongodb做个简易文件系统 - ciaos 时间 2014-03-09 21:21:00   博客园-所有随笔区 原文   http://www.cnblogs.com/ciaos/p/3590662.html 主题  MongoDB  Jetty  文件系统 依赖库: 1,jetty(提供http方式接口) 2,mongodb的java驱动(访问mo

mongodb简单入门

一篇较好的mongodb常用操作命令:http://www.cnblogs.com/hoojo/archive/2011/06/01/2066426.html mongodb的java操作:http://www.cnblogs.com/cyhe/p/5451421.html

mongodb自启动脚本.md

可粘贴文本(不全): #!/bin/sh##chkconfig: 2345 80 90#description:mongodb#processname:mongodbif test -f /sys/kernel/mm/transparent_hugepage/enabled; thenecho never > /sys/kernel/mm/transparent_hugepage/e

MongoDB学习—(6)MongoDB的find查询比较符

首先,先通过以下函数向BookList集合中插入10000条数据 function insertN(obj,n){var i=0;while(i<n){obj.insert({id:i,name:"bookNumber"+i,publishTime:i+2000})i++;}}var BookList=db.getCollection("BookList")调用函数,这样,BookList

MongoDB学习—(5)修改器$inc,$unset,$push,$pushAll,$allToSet,$pop,$pull,$pullAll

通过db.help()可以查询到关于数据库的操作,一查询发现有很多方法 其中有一个方法为db.getCollection(cname),即通过这一个函数,传入数据库中的一个集合的名称来获取到该集合的一个对象,我们可以编写函数   function insertTenRecord(obj){ var i=0; while(i++<10){ obj.insert({id:i+1,a