Rails--n+1查询

listings = Listing.includes(:property).where(id: ids)

 

posted @ 2016-11-10 10:12  盖瑞  阅读(143)  评论(0编辑  收藏  举报