Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Survey submission is excruciatingly slow

  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173336 by jnuneziglesias
Survey submission is excruciatingly slow was created by jnuneziglesias
Hi all,

I'm having trouble with a survey instance I've installed on a VM. Everything is working great, but when I (or users) click "Submit", there is a good 10s+ pause until the confirmation page is shown. (Until then, it just scrolls to the top, which seems "broken".) I am using local MySQL as a backend.

1) any idea why this would be this slow?
2) is there any way to have a splash page, like the typical "don't press the back button" pages on some payment processors?

Thanks!

Juan.
The following user(s) said Thank You: mrli999
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #173344 by tpartner
Replied by tpartner on topic Survey submission is excruciatingly slow
Have a look at this post which describes how to implement a modal spinner when clicking "Submit" - www.limesurvey.org/forum/design-issues/1...e-immediately#172405

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 6 months ago #173347 by jelo
Replied by jelo on topic Survey submission is excruciatingly slow

jnuneziglesias wrote: 1) any idea why this would be this slow?

Sounds more like an issue with your hosting environment.
Is the survey with a group by group or an all in one display mode?

Create a one question survey and check again. Is the submit lag issue the same?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173351 by jnuneziglesias
Replied by jnuneziglesias on topic Survey submission is excruciatingly slow
Thanks Tony! Just a quick Q, I added that code to a file custom.js under themes/survey/fruity/scripts/custom.js, (I'm using the fruity theme in my survey), but don't get a spinner. The file permissions are root/root, same as the (template custom.js file in the vanilla theme. Any ideas?
The topic has been locked.
  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173352 by jnuneziglesias
Replied by jnuneziglesias on topic Survey submission is excruciatingly slow
@jelo

> Create a one question survey and check again. Is the submit lag issue the same?

Good suggestion, thanks! I don't have time to try it now but will in the morning.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #173355 by tpartner
Replied by tpartner on topic Survey submission is excruciatingly slow
You should extend that theme and only modify files in the extended theme. You may need to reset the assets.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173373 by jnuneziglesias
Replied by jnuneziglesias on topic Survey submission is excruciatingly slow
@jelo

I tried the test survey and it took a long time also. I'm not really sure what that means though!
The topic has been locked.
  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173374 by jnuneziglesias
Replied by jnuneziglesias on topic Survey submission is excruciatingly slow
@tpartner Ah, sure. However my hack above *should* have worked, shouldn't it? Despite the poor practice? I don't understand what "reset the assets" means here.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago - 5 years 6 months ago #173380 by tpartner
Replied by tpartner on topic Survey submission is excruciatingly slow
The assets manager may not have reset the files in the /tmp directory. You should see a reset button for each theme in the themes screen.

Failing that, you can set debug =1 in /application/config/config.php. This will bypass the assets manager so all files are loaded from the theme directory.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 6 months ago by tpartner.
The topic has been locked.
More
5 years 6 months ago - 5 years 6 months ago #173400 by jelo
Replied by jelo on topic Survey submission is excruciatingly slow

jnuneziglesias wrote: I tried the test survey and it took a long time also. I'm not really sure what that means though!

Ok, what version of LimeSurvey is used.
Look at the bottom to see the version. Depending on your version you can click on the version and a window with additional infos about your LimeSurvey installation is displayed.

To me this looks like a hosting environment issue. VM setup (what technology is used?) might has an I/O issue.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 5 years 6 months ago by jelo.
The topic has been locked.
  • jnuneziglesias
  • jnuneziglesias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173404 by jnuneziglesias
Replied by jnuneziglesias on topic Survey submission is excruciatingly slow
Thanks everyone for your help!

@tpartner, resetting the assets appears to have changed the behavior for the better. Now the browser appears to be loading the next page after hitting "submit", rather than just sending me back to the top of the survey. So, as far as I'm concerned, it's usable now. Thank you!

@jelo, the version is Version 3.14.5+180815. The dokuwiki site running on the same VM is fast enough, so it doesn't seem to be some Apache issue, for example. However now that the waiting time looks like regular browser load time, I'm happy enough not to pursue this further.

If anyone is motivated enough to actually figure out what's going on, I'm happy to discuss more in private. Thanks again!
The topic has been locked.
More
3 years 10 months ago #198918 by mrli999
Replied by mrli999 on topic Survey submission is excruciatingly slow
I also came with this problem. My version is: 2.73.1+171220.

Does anyone know how to resolve this problem? Thanks.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose