感觉要多用视图模型,少用关联模型啊~~

浏览:712 发布日期:2014/04/23 分类:求助交流
因为视图模型出来的sql语句是一句
select a.uid, b.uname from table1 a join table2 b on a.uid = b.uid;

而关联模型就变成两句sql了
select a.uid from table1 a;
select b.uname from table2 b;

明显就是视图模型的sql查询效率要高了,大家伙觉得呢?
最佳答案
评论( 相关
后面还有条评论,点击查看>>