In YII2, which one of the main performance can be improved by using yii2-mongodb?

Source: Internet
Author: User
In YII2, which one of the main performance can be improved by using yii2-mongodb? In YII2, which one of the main performance can be improved by using yii2-mongodb?

Reply content:

In YII2, which one of the main performance can be improved by using yii2-mongodb?

Mongodb is a nosql
Mysql is a traditional database
As for performance improvement, it is difficult to compare whether your application is nosql or traditional db.

Mongo is a nosql database, and the yii encapsulated yii2-mongodb should be an extended class library, as if the encapsulated mysql class library in your framework is consistent. It is easier and easier to use.

We do not recommend that yii use mongodb. After all, yii is used to deal with relational databases. I have used a yii2-mongodb and can't even do the most basic nesting of documents, for example: $ model-> folder-> file-> attribute, the conclusion is that the relational database can be used as much as possible.

If you have to use mongodb, we recommend that you consider node. js instead of php.

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.