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.