What application scenarios should mongdb be used?

Source: Internet
Author: User
Mysql and redis are currently very good and skilled. in what scenarios should I discard these tools and use mongo to store data? In addition: Currently, we are exploring and storing data of the document type. the style of the document content must be saved without compromising the retrieval capability of the retrieval tool on the content, and the performance is also high... mysql and redis are currently very good and skilled. in what scenarios should I discard these tools and use mongo to store data?

In addition:
Currently, we are exploring and storing the data of the document type. the style of the document content must be saved without compromising the retrieval capability of the retrieval tool on the content, and the performance has to go through, I need a set of good solutions. I certainly checked the database features and comparisons in advance, so the answer is not simply to compare the database features, my actual problems may be based on actual practice and experience.

I have made millions of APP backgrounds with daily orders. Mysql and Redis can be supported by MySQL and Redis in general. What are the reasons or scenarios that will force me or recommend me to use mongo, mongo flexible data type storage. Currently, I only think that it is better to use mongo for log storage. I am a newbie in article-type website development and need experience guidance. thank you first

Reply content:

Mysql and redis are currently very good and skilled. in what scenarios should I discard these tools and use mongo to store data?

In addition:
Currently, we are exploring and storing the data of the document type. the style of the document content must be saved without compromising the retrieval capability of the retrieval tool on the content, and the performance has to go through, I need a set of good solutions. I certainly checked the database features and comparisons in advance, so the answer is not simply to compare the database features, my actual problems may be based on actual practice and experience.

I have made millions of APP backgrounds with daily orders. Mysql and Redis can be supported by MySQL and Redis in general. What are the reasons or scenarios that will force me or recommend me to use mongo, mongo flexible data type storage. Currently, I only think that it is better to use mongo for log storage. I am a newbie in article-type website development and need experience guidance. thank you first

It is very useful to list the appropriate use cases one by one...

In turn, we think about what scenarios are not suitable for mangodb?

We have a personal user Center:
A user can have many friends, and his or her friends can have many comments. they can have many replies and many likes.

Using mongodb for modeling is a large json, where we have a user, and there is an array of friends in the user, an array of messages, an array of replies, and a group of likes, the complete information is stored in these arrays and is obtained at one query!

However, there is a problem
Because the friend information in the friend array is actually the user information, storing the complete information causes data redundancy. this problem can also be solved, that is, storing the id in the array, check the data in the corresponding data source based on the id,

However, mongodb does not have a join operation, so it is necessary to manually perform Association work in the code layer ..

In this case, mongodb is not suitable for storing data that has a relationship, relationship, and relationship.

Why shouldn't you use MongoDB?
Why You shoshould Never Use MongoDB

Related Article

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.