Hy.
My question is about the same as this one :
So i have a big form in my views. In the controller side, i simulate a formType in order to persist it in database. This form has 3 outer relations. The main problem is (confirmed by debugging) this function:
$form->handleRequest($request);
In my case, this only one line takes 6 seconds of treatment (in production environment), about 9 in local dev environment
By reading the previous post (this one) it appears that the problem comes from Symfony background treatments where there is loops on each datas present in database. Which explains my 6 seconds due to 20K of occurences for one of my relational form.
My Question is simple. Is there a way to optimise my form Type ? Or must i do this manually ?
Thank you all