Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does lots of controllers slows the performance? MVC

I want to ask a simple question about MVC controllers. I have googled a lot about controllers for "different controllers for each basic table", it cleared a lot of things but i have one question that i couldn't find answer for.

My question is that if i create controller for each basic table, lets say i have 10 basic tables that would create 10 controllers. So does lots of controller slows the application performance?

- In case, when going from view to controller.

- In case, when going from controller to another controller.

I am new so kindly be calm :)

like image 494
Waqar Ahmed Avatar asked Sep 06 '25 12:09

Waqar Ahmed


1 Answers

Usually, one request is processed by one controller. And if it (cotroller) is small and have a few dependencies - it's quick. When you have one huge controller with many dependencies of other classes that have their own dependencies and so on... it could be a problem.

like image 163
Backs Avatar answered Sep 10 '25 12:09

Backs