阅读背景:

如何使用Rails优化这个查询

来源:互联网 

I have an array of book ids and I need to iterate each and save the number of comments for each in a Hash (@book_comments) that will have the book_id as the key and the number of comments for that book as a value. Book has many comments, comment belong to books.I have an array of book ids and I need to itera




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: