Download & Extend

big performance problem when using webform with profile fields

Project:Webform
Version:6.x-2.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I have a somewhat big site (1000 users, 6000 profile field values).
I was having problems downloading submissions (csv format) from a large webform: 200 submissions, 80 questions: server timeout after a few minutes.

I tracked it down to profile_load_profile, which takes 20 ms to execute on my db.

when I commented it out, I got it instantly.

I haven't looked too closely at the code, but I think it's invoked repeatedly to load the same profile from global user...

Comments

#1

Status:active» needs review

Here's a patch that caches the values...

AttachmentSize
w.patch 772 bytes

#2

Ping ? anyone alive ? I know you fixed a security bug, but this is a serious problem. Hampers down my site seriously, and the patch does indeed fix the problem

#3

Priority:critical» normal
Status:needs review» fixed

This problem was actually fixed in the security update in the 2.8 version. Unfortunately that also broke profile values entirely, which was fixed in #604958: %profile and %server default values broken. This patch is no longer necessary.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here