Eloquent: Two HUGE Performance Mistakes

  Рет қаралды 8,547

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 23
@r.chitector
@r.chitector 3 ай бұрын
"Mistakes" videos are the best!!! :) (because of new deep knowledge)
@rafamorawiec
@rafamorawiec 3 ай бұрын
I agree. Few years ago I fall in love with $with and that was a huge mistake. Now I'm never using $with and it's even better for me and my co-workers because now by just looking at query we know what exactly it will return.
@vaultdweller966
@vaultdweller966 3 ай бұрын
You didn't mention it but when you have a "$with" property on your model, you can use ->without('xxxxx') when you specifically don't need the relationship in a particular query.
@elgoogssie3969
@elgoogssie3969 3 ай бұрын
I'm sufferning form the imposter syndrom, but when i watch Your videos i actually feel good about myself since i do not make such cardinal mistakes as mentioned in this video. I do not consider myself as a programmes thou. I only work as one :)
@r.rakeshreddy1651
@r.rakeshreddy1651 3 ай бұрын
Great video
@tomasreinert5511
@tomasreinert5511 3 ай бұрын
This is great video!
@ultrono23
@ultrono23 3 ай бұрын
Great video.
@philipjamesajagabos2519
@philipjamesajagabos2519 3 ай бұрын
Very helpful video
@rafa-m5s2l
@rafa-m5s2l 3 ай бұрын
Hi Povilas! Are you sure the cause lies in $with? I tried to reproduce this error and when using $with I get 2 queries. Could the cause lie deeper, for example in $append and some attribute that uses organisation?
@LaravelDaily
@LaravelDaily 3 ай бұрын
Not sure now, it's been a while since this video, don't remember its details now
@ryiad2010
@ryiad2010 3 ай бұрын
it is very helpful thanks
@PepperAddict
@PepperAddict 3 ай бұрын
->random() or might be called ->inRandomOrder() is also very slow
@GeeksPartnerM
@GeeksPartnerM 3 ай бұрын
Does Model::with have the same effect? Should we avoid using those relationships??
@LaravelDaily
@LaravelDaily 3 ай бұрын
No, it's just about defining $with globally.
@nirbhaysingh2504
@nirbhaysingh2504 3 ай бұрын
How can I contact u I want to ask a few questions
@LaravelDaily
@LaravelDaily 3 ай бұрын
povilas@laraveldaily.com but I don't have much free time, only quick questions please
@rvrelaxingmusic4602
@rvrelaxingmusic4602 3 ай бұрын
What about $appends, is it the same case as $with or has another benefit?
@LaravelDaily
@LaravelDaily 3 ай бұрын
It's different, it automatically loads only for APIs, as I remember. But I don't remember using it ever, for the same reason: no guarantee when it would work
@vodacbao
@vodacbao 3 ай бұрын
@PedroS-nv1sl
@PedroS-nv1sl 2 ай бұрын
IU won't name them, but their code has Webkul written all over it 😅
@operationblackbishop4785
@operationblackbishop4785 3 ай бұрын
Lol, I know the CRM.
@weeb3277
@weeb3277 3 ай бұрын
go on
@operationblackbishop4785
@operationblackbishop4785 3 ай бұрын
@@weeb3277 just look for Laravel Open Source CRM it will be in first 3 results. Check the demo.
The ULTIMATE Laravel Nova Tutorial [Walkthrough w/ Examples]
2:02:35
Code With Dary
Рет қаралды 25 М.
Laravel Horizon: queue monitoring + configuration
14:54
Aaron Francis
Рет қаралды 22 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Eloquent Performance Challenge: My Solution Version
9:57
Laravel Daily
Рет қаралды 19 М.
4 Problems with Eloquent Soft Deletes (and Two Alternatives)
9:05
Laravel Daily
Рет қаралды 13 М.
Complex Seeder: Eloquent Optimization Example
8:20
Laravel Daily
Рет қаралды 4,8 М.
Laravel Conventions/Guidelines from IxDF
9:40
Laravel Daily
Рет қаралды 5 М.
Factory Design Pattern in Laravel Explained with a Project
36:25
Top 5 Laravel "Bad Practices" (My Opinion)
10:32
Laravel Daily
Рет қаралды 24 М.
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 54 М.
Deno vs. Node.js vs Bun: Performance Comparison
12:28
Anton Putra
Рет қаралды 77 М.
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 112 М.
Laravel Roles/Permissions: Complex Multi-Clinic Project
13:03
Laravel Daily
Рет қаралды 11 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН