In model class, it provide a way to define the db table scheme manually. I didn't use it when I design the model class for mysql db adapter, and it's working well. 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? Should I always use "scheme definition" in model class?

Thanks.

有帮助吗?

解决方案

The best practice is to use a filter to cache the schema in production, like this: http://www.komposta.net/article/lithium-model-schema-caching

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top