Rails N + 1 query problem when fetching associated records with where condition

后端 未结 0 584
长发绾君心
长发绾君心 2021-01-12 12:23

I have below table structure. This is just an example

UserPost => user_id, post_id, Post, Comment

So, If I try to fetch all user_posts

相关标签:
回答
  • 消灭零回复
提交回复
热议问题