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.