mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
425881257b
When there are a lot of SubmittedForm records the UserDefinedForm page takes a long time to load in the CMS, and oftens exceeds the PHP memory limit well beyond 128M. Previously UserDefinedForm::getCMSFields() would build a list of name => value from all SubmittedFormField records, but it would do this twice, once in getCMSFields() and another time in UserFormsGridFieldFilterHeader. It would also use the full ORM to build this list, when all it needs is a map of the Name and Value columns. This fixes that to build the columns once in getCMSFields() using DB::query() and it'll pass those columns along to UserFormsGridFieldFilterHeader as well so it doesn't do it twice. |
||
---|---|---|
.. | ||
formfields | ||
submissions | ||
UserDefinedForm.php |