silverstripe-userforms/code/model
Sean Harvey 425881257b BUG Performance improvements of SubmittedFormField queries.
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.
2013-11-13 17:08:49 +13:00
..
formfields FIX EditableCountryDowndownField being broken by removal of Geoip in 3.0 2013-08-29 14:03:09 +12:00
submissions FIX submitted fieldfields in submission details in CMS 2013-09-05 09:46:38 +12:00
UserDefinedForm.php BUG Performance improvements of SubmittedFormField queries. 2013-11-13 17:08:49 +13:00