laravel Join Vs With (in Performance)

前端 未结 0 1918
孤街浪徒
孤街浪徒 2020-12-13 03:41

suppose i have User and Post each User HasMany Post

which of the following code is better

 $result1 =  User::with("posts")
              


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