Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在模型类中,它提供了一种手动定义数据库表方案的方法。我在设计mysql db适配器的模型类时没有使用它,它运行良好。我认为 Lithium 会自动从 mysql db 中检索方案信息,所以我有一些性能问题,如果我在模型类中使用“方案定义”性能会更好吗?我应该总是在模型类中使用“方案定义”吗?
谢谢。
最佳实践是使用过滤器在生产中缓存模式,如下所示:http ://www.komposta.net/article/lithium-model-schema-caching