Drastically Improve Query Time From 4 seconds to 70 milliseconds (50 - 60 times faster)

  Рет қаралды 54,556

Laratips

Laratips

Күн бұрын

Пікірлер: 50
@Laratips
@Laratips 2 жыл бұрын
Get $15 credit by using code "LARATIPS" which can last almost a month. Cloudways Web Hosting: platform.cloudways.com/signup?id=1029148&data1=bw&coupon=LARATIPS Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr
@Laratips
@Laratips 3 жыл бұрын
Hey Guys, just wanted to share that don't go and create many indexes in your application. There is one downside of it as well. Yes, it increases the read performance of your application but it will decrease the write performance. It means when you store something in the table with lots of indexes, it will take a lot of time to actually store the data in the table. So, if your application does more reads than writes, you can add more indexes but the lesser the indexes better it is. Also, always check the performance of your application and roll back if necessary after adding an index.
@BraderGeoYT
@BraderGeoYT 7 ай бұрын
I'm applying as a Laravel Developer for my next job and this really helped me alot to prepare and this is very useful thanks for the tip!
@VitorJustin
@VitorJustin 3 жыл бұрын
Great tip! Tks for sharing!
@uchchhash-dev
@uchchhash-dev 2 ай бұрын
Great video! Thanks for the effort. Do you still plan to make videos regularly? Your last video was a few months ago
@vmmismagic
@vmmismagic 8 ай бұрын
amazing explanation!
@musicfactoryPH
@musicfactoryPH 2 жыл бұрын
Very big help. Thank you so much
@Laratips
@Laratips 2 жыл бұрын
You're welcome!
3 жыл бұрын
great leson
@Laratips
@Laratips 3 жыл бұрын
Thanks
@OnlinePseudonym
@OnlinePseudonym 2 жыл бұрын
Really insightful - thanks very much 🙂
@Laratips
@Laratips 2 жыл бұрын
Glad it was helpful!
@imranlashari6578
@imranlashari6578 8 ай бұрын
@laratips what about if i am using vue js as frontend and laravel as backend, i need to check every API call query execution time to optimize it
@alnahian2003
@alnahian2003 2 жыл бұрын
Cool! Learned something new and helpful.
@Laratips
@Laratips 2 жыл бұрын
Glad it was helpful!
@farhanisrak8688
@farhanisrak8688 9 ай бұрын
Can you please tell which extension you're using for checking those queries?
@fatchurrosi4386
@fatchurrosi4386 9 ай бұрын
using laravel debug bar
@farhanisrak8688
@farhanisrak8688 9 ай бұрын
Thanks @@fatchurrosi4386
@bhavyakumarpanchotiya8254
@bhavyakumarpanchotiya8254 3 жыл бұрын
What is use of Carbon ...make the video on that..
@Laratips
@Laratips 3 жыл бұрын
It is basically a wrapper around PHP's DateTime class but much more readable api. Sure I will make one. Thanks for the video idea. :)
@bhavyakumarpanchotiya8254
@bhavyakumarpanchotiya8254 3 жыл бұрын
@@Laratips Thank you sir
@ramonm8039
@ramonm8039 3 жыл бұрын
What is the name of the tool to see Queries??
@julienSibille
@julienSibille 3 жыл бұрын
Laravel debugbar
@ramonm8039
@ramonm8039 3 жыл бұрын
@@julienSibille Thanks!
@johnp6115
@johnp6115 3 жыл бұрын
Thanks for the tip, awesome!
@lchig0
@lchig0 2 жыл бұрын
Great vid buddy
@Laratips
@Laratips 2 жыл бұрын
Thanks
@nathanstanfordsr
@nathanstanfordsr Жыл бұрын
awesome tip thanks
@mirshodmustafoyev2524
@mirshodmustafoyev2524 Жыл бұрын
What happens if we use second query for non indexed data ? Gets less time than 4s or not ?
@hizkielputra1195
@hizkielputra1195 Жыл бұрын
thank you
@shahriyarhosseinzadeh4409
@shahriyarhosseinzadeh4409 Жыл бұрын
Hey , please turn on subtitle
@fahathamm3965
@fahathamm3965 3 жыл бұрын
Can i use collection for cout... if i use collect how much kuch sec take it.. which one is better..? Thank you recent addict laravel channel one of the subscriber
@Laratips
@Laratips 3 жыл бұрын
Always use eloquent or database layer instead of collection if possible. The time taken depends on how many data u have in collection. You can check the time by logging the time before and after the collection execution. Thanks for subscribing. ♥️
@Vikaskumar-ur5di
@Vikaskumar-ur5di 2 жыл бұрын
which package are used in laravel debug
@Laratips
@Laratips 2 жыл бұрын
Laravel debugbar
@taskinurrahman6650
@taskinurrahman6650 2 жыл бұрын
Use count(id) instead of count(*)
@impostor8984
@impostor8984 Жыл бұрын
no
@Xaero324
@Xaero324 Жыл бұрын
This has been debunked. That may have been true very long ago, however, DBMS are now optimized and would prefer you use count(*). In short: count(*) !== select(*)
@LukePighetti
@LukePighetti Жыл бұрын
What tool are you using to show the Laravel query performance?
@Laratips
@Laratips Жыл бұрын
It's a laravel package called Laravel Debugbar
@diomandesouleymane6621
@diomandesouleymane6621 3 жыл бұрын
Great tip
@BijayaNamna
@BijayaNamna 2 жыл бұрын
Are you from Nepal ? You accent seems like that
@Laratips
@Laratips 2 жыл бұрын
Yes
@MudassarYaseen
@MudassarYaseen 2 жыл бұрын
Great
@tusharnain6652
@tusharnain6652 Жыл бұрын
But it's gonna cost WRITE Operations.
@jlbciriaco3142
@jlbciriaco3142 11 ай бұрын
just think about what the user will do more: it will update the data or just see the data? generally is more acceptable a slow write operation than a slow read operation.
@kapadiajanak
@kapadiajanak 3 жыл бұрын
Laravel socket io lesson
@sri3235
@sri3235 Жыл бұрын
Thank you
@MikdanJey
@MikdanJey 2 жыл бұрын
Great
@Warkim
@Warkim 3 ай бұрын
Thank you
Eloquent Performance: TOP 3 Mistakes Developers Make
7:59
Laravel Daily
Рет қаралды 49 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 669 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 15 МЛН
Querying 100 Billion Rows using SQL, 7 TB in a single table
9:07
Arpit Agrawal (Elastiq.AI)
Рет қаралды 52 М.
Speed up MySQL 25-100x with Indexing
7:06
AnotherMaker
Рет қаралды 33 М.
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 54 М.
SQL Query Optimization - Tips for More Efficient Queries
3:18
Cody Baldwin
Рет қаралды 72 М.
Make faster outbound requests with Laravel (10x faster, actually)
5:28
QA Engineer From Scratch  / Lesson 22. JOIN queries in SQL/MySQL for QA Engineer
22:04