Use Yii2-mongodb in the YII2 inside the main to improve which piece of performance?

Source: Internet
Author: User
Use Yii2-mongodb in the YII2 inside the main to improve which piece of performance?

Reply content:

Use Yii2-mongodb in the YII2 inside the main to improve which piece of performance?

MongoDB is a NoSQL
MySQL is the traditional db
As for the performance improvement This bad comparison, see you develop the application, is nosql convenient or traditional db convenient

MONGO is a NoSQL database, and the yii2-mongodb of Yii encapsulation should be an extended class library, as if the already packaged MySQL class library in your framework is consistent. The application will be more convenient, more simple.

Yii is not recommended for use with MongoDB, after all, Yii is used to deal with relational databases. I have used yii2-mongodb, even the most basic document nesting can not do, such as: $model->folder->file->attribute, the conclusion is to use the relationship type or try to use the relationship type bar.

If you do not want to use MongoDB, it is recommended to consider node. js, do not use 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.