Benjamin Crozat avatar

Benjamin Crozat

@benjamincrozat

N+1 database queries are the #1 killer in most Laravel projects.

Have you heard about Model::automaticallyEagerLoadRelationships()?

It can make a big difference.

On my blog's homepage:
→ Without: 38 queries (~24ms)
→ With: 13 queries (~8ms)
Obviously, in a production environment, with heavy tables and substantial traffic, the benefits compound and it's even more impressive.
공유
탐색

TweetCloner

TweetCloner는 X/Twitter를 위한 창의적인 도구로, 모든 트윗이나 스레드를 복제하고 번역하여 신선한 콘텐츠로 리믹스하고 몇 초 만에 다시 게시할 수 있도록 도와줍니다.

© 2024 TweetCloner 모든 권리 보유