Laravel Challenge: Improve Eloquent Performance of Movies Table

Laravel Challenge: Improve Eloquent Performance of Movies Table

Laravel Daily

2 года назад

7,414 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Víctor González Toledo
Víctor González Toledo - 21.09.2021 14:32

Thanks as always! +1 fork here I'll upload my PR this week.

Ответить
Nimit Bhagat
Nimit Bhagat - 12.08.2021 07:56

how can i keep the bottom bar in which all the details are shown? (in which the performance is shown)

Ответить
Abdul Rehman
Abdul Rehman - 10.08.2021 09:32

Hi Povilas, Can you please put the challenge videos in a playlist? Would help find and practice for later.

Ответить
Sharifur Robin
Sharifur Robin - 10.08.2021 09:09

Love it

Ответить
Vince Carter
Vince Carter - 09.08.2021 22:39

the video with the results of this challenge will be very interesting. I have one question: if there is a query like select * from table where ..., which is returning for example 1000 results, but I don't show them on the page, instead I am making some calculations and at the end, I display the result of this calculation. Debugbar is saying that there are 1000 Models loaded. Is it possible to reduce the number of models, when I don't display them, and if yes, can you please give me some advice?

Ответить
Jachaś
Jachaś - 09.08.2021 19:52

Hey, could you tell me what is this browser addon for laravel?

Ответить
Gamer Never Sleep
Gamer Never Sleep - 09.08.2021 19:31

its about N+1 eloquent problem

Ответить
Inti Pontt
Inti Pontt - 09.08.2021 19:29

I wish you announced your challenges with a day or two in advance, maybe with a community post. Your videos come out at 1am for me.

Ответить
amrullahdev
amrullahdev - 09.08.2021 19:15

after somtimes finaly got 1 quers 0 models and 250 - 300ms , but now , how can i push on your github / participate with this , aight i got it found how to participate on your github link thaks

Ответить
Shailendra Sharma
Shailendra Sharma - 09.08.2021 17:42

I want to participate in this challenge but I don't know how to use the git
I have github account and I know basic git command like add, commit, pull and push but how can I make improvement in this project
can anyone tell me how should I get this project and after making changes then how should I submit my work?

Ответить
Abdulbasit Salah
Abdulbasit Salah - 09.08.2021 14:56

when working with team project, is that good to delete the code that's commented by other teammates?

Ответить
Fatih Araz
Fatih Araz - 09.08.2021 13:41

Laravel Eloquent have a poor performance for models if its about over thousands of records.

Ответить
Stoney_Eagle
Stoney_Eagle - 09.08.2021 12:53

Ahhw you're not even using real movies from themoviedb 😂

Ответить
Mantosh Nishad
Mantosh Nishad - 09.08.2021 12:45

first of all thanks for all your videos that help us to improve our coding sense,
Second i have a query

public function delete()
{
$this->deleted_user_id = 1;
$this->save();
return parent::delete();
}


This is my model method that override delete method
but this is working with this code Year::where('yr_id', $c_id)->first()->delete();
but not working with this code Year::where('yr_id', $c_id)->delete();

Ответить
Pascal Raymond
Pascal Raymond - 09.08.2021 12:12

Well... After some tries, Although the memory usage increases,
Laravel Collection AVG method seems to be faster
than the equivalent MySQL function ( Wamp , Core i7 )

Am I wrong ?

Ответить
King Stalker
King Stalker - 09.08.2021 10:28

Do you have a video onworking with interest rate ComPound interest and maybe like where you can save those outstanding values and how much a client has paid and what how to update his total due with new interest or something like that?

Ответить
Muhannad Jaafari
Muhannad Jaafari - 09.08.2021 09:21

what is the name of the tool you use to know the speed and memory usage ?

Ответить
Kevin Yobeth
Kevin Yobeth - 09.08.2021 08:43

Does your query order the result descendingly? Because in your video it seems that your result wasn't sorted from the highest avg rating

Ответить
Lalit Bohara
Lalit Bohara - 09.08.2021 08:13

using redis cache driver makes query load much smaller

Ответить