Increase the performance of yii2 project
Points:
1) By default we are using active record ORM by YII2, So by default yii2 scans the database schema for every SQL query action.
2)To avoid it we used yii2 schema caching along with that ,we create CRON job to executes code from below link.
https://forum.yiiframework.com/t/how-to-clear-schema-cache/35109/6
3) The CRON will refresh the schema of all tables and clear the cache.
Please share your comments ,if there any other way to increase the performance of yii2.
REFERAL:
https://www.yiiframework.com/doc/guide/2.0/en/tutorial-performance-tuning#enable-schema-caching
Comments
Post a Comment