Laravel DB Optimization: From 1.5k to 26 Queries

  Рет қаралды 20,571

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 23
@LoganathanNatarajanlogudotcom
@LoganathanNatarajanlogudotcom 6 ай бұрын
Good explanation and thanks for sharing.
@Gideon933
@Gideon933 11 ай бұрын
12:42 I will optimise the update condition by comparing a hash of the values in from the database to the hash of what was submitted to reduce the not equal to checks.
@bowiemtl
@bowiemtl Жыл бұрын
Impressive! :) First watched some of your Livewire examples but you definitely deserved your sub now
@dclindner
@dclindner Жыл бұрын
Nicely done! I have to say that it's this kind of challenge that makes me vigilant in the use of packages in real applications. Your example does a nice job in highlighting that you should not blindly use a package without first understanding how it works. Also, this should be a call-to-action to any package publisher---cursory review of code performance would have exposed this issue long before it was published.
@sofian-_-7
@sofian-_-7 Жыл бұрын
Nice video 👍 FIY, "locale" is pronounced same as "low kal" - I'm not native too, no worries 🤟
@mushypeeze3545
@mushypeeze3545 Жыл бұрын
In English the letter "C" is often pronounced as a "K", as in Cow, Colour, but sometimes it's like "S" as in Ceiling. Regardless Povilas' command of English is extremely good considering it's not his native language and how ambiguous the English Language is
@tiagotheoliveira
@tiagotheoliveira Жыл бұрын
Very nice video.
@forever-zy3id
@forever-zy3id Жыл бұрын
ممنون
@devKazuto
@devKazuto Жыл бұрын
And what was the baseline for just updating the records? 1.5k was creating the records, 26 was updating the records. Two completely different things and thus the title is misleading as 162 is the real value to compare against as this is the number of queries with `--fresh`.
@LaravelDaily
@LaravelDaily Жыл бұрын
You're technically correct. Sorry for the misleading title.
@chandraauliatama6384
@chandraauliatama6384 Жыл бұрын
great video
@yoyoypy
@yoyoypy Жыл бұрын
this is gold
@sepehrraftari2385
@sepehrraftari2385 Жыл бұрын
Thanks for the video I think you could do another step of optimizing by using `createMany`
@swilshobhit
@swilshobhit Жыл бұрын
My Laravel 9 with livewire project not working in cpanel. Getting error in console : livewire not define. Plz help me how to resolve this. I don't have ssh access in my hosting.
@LaravelDaily
@LaravelDaily Жыл бұрын
I don't recommend using hosting without ssh access, it leads to all kinds of problems like this one.
@iliyasmsc
@iliyasmsc Жыл бұрын
which screen record do you use?
@LaravelDaily
@LaravelDaily Жыл бұрын
Camtasia Studio on my MacBook
@iliyasmsc
@iliyasmsc Жыл бұрын
@@LaravelDaily Thank you for replied.
@MouffaqEjjah
@MouffaqEjjah Жыл бұрын
please how to use bootstrap 5 in breeze?
@LaravelDaily
@LaravelDaily Жыл бұрын
You can't use Bootstrap in Breeze. For Bootstrap, use starter kit laravel/ui
@streakifyapp
@streakifyapp Жыл бұрын
Personally I find Laravel Telescope considerably more useful for debugging performance issues than Ray as you can see a breakdown of all queries (specifically which ones that might be slow, which are duplicate), jobs, etc.
@mushypeeze3545
@mushypeeze3545 Жыл бұрын
I tried the php artisan translations:import --fresh command but got an " There are no commands defined in the "translations" namespace." error
@LaravelDaily
@LaravelDaily Жыл бұрын
It comes from the package mentioned in the video, not from default Laravel.
Laravel Code Review: Optimize Queries and Other Performance
9:33
Laravel Daily
Рет қаралды 11 М.
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 53 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 88 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 61 МЛН
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 142 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 10 М.
How to scale Laravel: beyond the basics (Advanced Laravel Scaling)
9:04
Sabatino Develops
Рет қаралды 13 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 93 М.
Exceptions in Laravel: Why/How to Use and Create Your Own
12:18
Laravel Daily
Рет қаралды 88 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 334 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 35 М.
9 Tips for Shorter Laravel Code
10:16
Laravel Daily
Рет қаралды 62 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37