MongoDB interview questions

Source: Internet
Author: User
Tags install mongodb mongodb support
What is a NoSQL database? What is the difference between NoSQL and RDBMS? Under what circumstances do I use and do not use NoSQL databases?

What is a NoSQL database? What is the difference between NoSQL and RDBMS? Under what circumstances do I use and do not use NoSQL databases?

1. What is a NoSQL database? What is the difference between NoSQL and RDBMS? Under what circumstances do I use and do not use NoSQL databases?

NoSQL is a non-relational database, NoSQL = Not Only SQL.

Relational databases use structured data, while NoSQL uses key-value pairs to store data.

When processing unstructured/semi-structured big data, when scaling horizontally, NoSQL databases are preferred when dealing with dynamically increasing data items at any time.

Relational databases should be given priority when considering issues such as database maturity, support, analysis and business intelligence, management and professionalism.

2. What are non-relational databases?

Membase, MongoDB, and Hypertable

3. What is the most basic difference between MySQL and MongoDB?

The difference between a relational database and a non-relational database is that the data storage structure is different.

4. What are the characteristics of MongoDB?

(1) Documentation oriented (2) High Performance (3) high availability (4) Easy Scalability (5) rich query languages

5. Does MongoDB support stored procedures? How can I use it if it is supported?

MongoDB supports the stored procedure, which is written in javascript and saved in the db. system. js table.

6. How to understand the GridFS mechanism in MongoDB and why does MongoDB use GridFS to store files?

GridFS is a file specification that stores large files in MongoDB. GridFS can be used to separate large files into multiple small files for storage, so that we can effectively save large files and solve the limitation of BSON objects.

7. Why is MongoDB's data file large?

MongoDB uses pre-allocated space to prevent file fragments.

8. What will happen when updating the document on a Chunk being migrated?

The update operation will immediately occur on the old Chunk, and the change will be copied to the new shard before the ownership transfer.

9. MongoDB creates an index on A: {B, C}. Will indexes be used for queries A: {B, C} And A: {C, B?

No, the index will only be used on A: {B, C.

10. What if a Shard is stopped or slow?

If a shard is stopped, an error is returned if the "Partial" option is set for the query. If the response of a shard is slow, MongoDB will wait for its response.

MongoDB details: click here
MongoDB: click here

Related reading:

MongoDB backup and recovery

CentOS compilation and installation of MongoDB

CentOS compilation and installation of php extensions for MongoDB and mongoDB

CentOS 6 install MongoDB and server configuration using yum

Install MongoDB2.4.3 in Ubuntu 13.04

How to create a new database and set in MongoDB

MongoDB beginners must read (both concepts and practices)

MongoDB authoritative Guide (The Definitive Guide) in English [PDF]

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.