On one of our clients has a lot of webform submissions. (+ 3000)
When exporting: it takes ages (+15 mins) to export.

After a bit of research, _webform_csv_data_select was the killer.
I changed the following:

if ($component['extra']['multiple']) {
$value = _webform_filter_values($component['value'], NULL, NULL, FALSE);
$options = _webform_select_options($component['extra']['items'], TRUE);

When the select is not multiple, there is no need to filter values, and select options, because you return $data['value'].

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)