Filter
Exclude
Time range
-
Near
27 Jul 2025
-2 endpoints, 1 unresolved issue!! So how do you guys handle relationships in the resource file. The relationship function works well in the controller, buh its not loading the model relationship when I pass it to the resource file. Is they a way around eagerloading or that's the best and only way to handle it?🤔
26 Jul 2025
I don forget my own code nhi sha😂 2 weeks with python and I am struggling with PHP 😂😂 GN Frens
1
1
5
376
18 Nov 2023
リレーションあると思うのでUser::all()でユーザー全件取得しなくても良さそう、UserCountry軸にしつつwith使ってEagerLoadingできないか検討してみてください。 かなー nitsでrequestの値検証してるかちょっと気になるけど変な値が来ても結果が帰らないだけなのでよしとする
このコード、貴方ならどんな風にレビューしますか?
1
1
3
1,174
#Laravel folks here saying "a scope is more appropriate...". Nothing stops you from using a scope within a relationship and enjoying the best of both worlds. This makes querying and eagerloading a lot easier. 💅
Laravel tip: conditional relationships. If you notice that you use the same relationship often with an additional "where" condition, you can create a separate relationship method. More tips on the website: laraveldaily.com/tips
2
8
56
5,151
24 May 2023
💡 #Laravel devs, with route model binding, you might be tempted to re-query the db to fetch the same model again in a bid to eager-load some relationships. No don't do that. That's a perfect usecase for Lazy eagerloading. 💅
6
14
89
9,883
💡 SQL Generated for Lazy Loading and Eager Loading in .NET Core for Entity Framework🔽 #dotnet #dotnetcore #dotnet6 #csharp #lazyloading #eagerloading #entityframework
1
4
290
I have seen a Laravel application that was not able to take load of even 100 requests an hour! They even tried using AWS Lambda. But the problem was not Laravel, but not following the conventions. No eagerloading, duplicate queries, calling non-required data, big loops, etc!
2
3
EagerLoadingを廃止するとN 1が発生してべんり。費用対効果が高い。 #phpcon #phpcon2022 #track2
4
Replying to @bhserna
I like this one 1. Define association last_comment 2. Eager load only last_comment association instead of comments association because preloading/eagerloading can eat up alot of memory in case of big data has_one :last_comment, { order(created_at: :desc)
5
EagerLoading greatly increases the performance of loaded web pages in @CraftCMS. It reduces the number of round trips needed to be taken to the database to be able to render your page. #ttfb #craftcms #twig #optimisation #webdevelopers
1
ぁ、なるほど...👀 その感じならEagerLoading使ってパフォーマンスとn 1のことまで考えられてたら逆にポイント上がりそう🤔
129日目 ▫️n 1問題 🌟EagerLoadingをすることでrelationの情報を予め一緒に取得し、余分なクエリの発行を防ぐ。 enableQueryLog();とgetQueryLog();をゴルフアプリに書いて、実際にクエリログを出力してみた! データの保存でクエリ発行回数が増えるのは仕方ないのかな🤔 もう少し調べてみよう。
4
30 Apr 2021
#Laravel Tip: There's an easy way to get only the columns you need when #eagerloading a relation. Just add a comma separated list (including that all important primary key). #Eloquent makes it a dream 👌🏼🔥
2
5
It works by inspecting the incoming query upfront and eagerloading just the necessary data. That way when calling the resolvers all the data has been loaded.
1
2
Day59 #100DaysOfCode #Laravel やっとこさカテゴリ検索機能実装できた。ただEagerloading使ってはまだできず。デバッガーでコレクション内にrelationsという項目は確認できるけど、動的プロパティで呼び出そうとしても、プロパティがありませんと言われる。とりあえず次の機能実装に進むか。
2
1
Using DB Frist approach while working with .NET Core Web API along with eager loading, lazy loading, and explicit loading explanations: code-maze.com/netcore-web-ap… #dotnetcore #webapi #dbfirst #lazyloading #eagerloading #explicitloading

8
10
I don't, but I suppose it would prevent someone from unknowingly introducing an n 1 query in a view. It would enforce eagerloading... Can't think of anything else
1
2
This guy is posting solid tutorials on @adonisframework. The great thing is I am connecting many dots related to the other framework @laravelphp following his explanation about key fundamentals such as IoC, Dependency Injection, Active Record, EagerLoading, and many other things!

3 Feb 2018
Learn #VueJS and @adonisframework for #NodeJS youtube.com/channel/UCF5w1Qd… - publishing new tutorials every week w/ CodePens and more for easy practice.
1
2