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
@Laratips3 жыл бұрын
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.
@BraderGeoYT7 ай бұрын
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!
@VitorJustin3 жыл бұрын
Great tip! Tks for sharing!
@uchchhash-dev2 ай бұрын
Great video! Thanks for the effort. Do you still plan to make videos regularly? Your last video was a few months ago
@vmmismagic8 ай бұрын
amazing explanation!
@musicfactoryPH2 жыл бұрын
Very big help. Thank you so much
@Laratips2 жыл бұрын
You're welcome!
3 жыл бұрын
great leson
@Laratips3 жыл бұрын
Thanks
@OnlinePseudonym2 жыл бұрын
Really insightful - thanks very much 🙂
@Laratips2 жыл бұрын
Glad it was helpful!
@imranlashari65788 ай бұрын
@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
@alnahian20032 жыл бұрын
Cool! Learned something new and helpful.
@Laratips2 жыл бұрын
Glad it was helpful!
@farhanisrak86889 ай бұрын
Can you please tell which extension you're using for checking those queries?
@fatchurrosi43869 ай бұрын
using laravel debug bar
@farhanisrak86889 ай бұрын
Thanks @@fatchurrosi4386
@bhavyakumarpanchotiya82543 жыл бұрын
What is use of Carbon ...make the video on that..
@Laratips3 жыл бұрын
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. :)
@bhavyakumarpanchotiya82543 жыл бұрын
@@Laratips Thank you sir
@ramonm80393 жыл бұрын
What is the name of the tool to see Queries??
@julienSibille3 жыл бұрын
Laravel debugbar
@ramonm80393 жыл бұрын
@@julienSibille Thanks!
@johnp61153 жыл бұрын
Thanks for the tip, awesome!
@lchig02 жыл бұрын
Great vid buddy
@Laratips2 жыл бұрын
Thanks
@nathanstanfordsr Жыл бұрын
awesome tip thanks
@mirshodmustafoyev2524 Жыл бұрын
What happens if we use second query for non indexed data ? Gets less time than 4s or not ?
@hizkielputra1195 Жыл бұрын
thank you
@shahriyarhosseinzadeh4409 Жыл бұрын
Hey , please turn on subtitle
@fahathamm39653 жыл бұрын
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
@Laratips3 жыл бұрын
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-ur5di2 жыл бұрын
which package are used in laravel debug
@Laratips2 жыл бұрын
Laravel debugbar
@taskinurrahman66502 жыл бұрын
Use count(id) instead of count(*)
@impostor8984 Жыл бұрын
no
@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 Жыл бұрын
What tool are you using to show the Laravel query performance?
@Laratips Жыл бұрын
It's a laravel package called Laravel Debugbar
@diomandesouleymane66213 жыл бұрын
Great tip
@BijayaNamna2 жыл бұрын
Are you from Nepal ? You accent seems like that
@Laratips2 жыл бұрын
Yes
@MudassarYaseen2 жыл бұрын
Great
@tusharnain6652 Жыл бұрын
But it's gonna cost WRITE Operations.
@jlbciriaco314211 ай бұрын
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.