简体   繁体   English

PHP Lithium-带有或不带有模型方案定义的性能仅限mysql

[英]PHP Lithium - performance with or without model scheme definition mysql only

In model class, it provide a way to define the db table scheme manually. 在模型类中,它提供了一种手动定义db表方案的方法。 I didn't use it when I design the model class for mysql db adapter, and it's working well. 当我为mysql db adapter设计模型类时没有使用它,并且它运行良好。 I think Lithium will retrive the scheme information from mysql db automatically, so I have some performance concern, is it better performance if I use "scheme definition" in model class? 我认为Lithium会自动从mysql db中检索方案信息,因此我有一些性能问题,如果在模型类中使用“方案定义”,性能会更好吗? Should I always use "scheme definition" in model class? 我应该在模型类中始终使用“方案定义”吗?

Thanks. 谢谢。

最佳实践是使用过滤器在生产环境中缓存模式,如下所示: http : //www.komposta.net/article/lithium-model-schema-caching

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM