When is equation question calculated

More
3 weeks 4 days ago #193101 by aukevann
Hi,

I have a number of questions in our survey that have a rather large calculation (to calculate a checksum) and at the same time we have performance issues. The survey is setup to show question by question. Can anybody tell me when a equation question is calculated? Is that done right after clicking on 'next' or when the survey is submitted?

Kind regards,
Auke

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
3 weeks 4 days ago #193111 by jelo
LS is doing validation via PHP(serverside) and Javascript (clientside Browser). You might explain the performanceissues a bit more. Perhaps with an example as LSS export to help reproducing issues.

Depending on what calculations are done (equation questions?), they are done directly via Javascript and via PHP on the next button click. They are not done in the beginning or the end of the survey (except if you place expressionmanager code there).

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 weeks 4 days ago #193112 by aukevann
Thanks Jelo for your response, that is very helpful.

The performance issue is that when the survey is submitted, at times it can take 10 or more seconds for the server to respond. Users than click again on the submit button and then they get an error, thinking their survey is not submitted properly while it is. I wanted to know if the hidden checksum questions I put in could cause it, but because the delay is not always there it was hard to find out by trial.

I have put calculations in an 'equation' question, so I don't think the Expression Manager is being used.

Cheers,
Auke

Please Log in or Create an account to join the conversation.

More
3 weeks 4 days ago #193115 by jelo
ExpressionManager is used in a equation question. The submit performance issue can be caused by many small things. To me this looks more like a server or network issue.
Or the page with the submit button has a critical question (in terms of database items) on it.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 weeks 4 days ago #193116 by aukevann
Ok, so when in the equation question I make a calculation using the answers of other questions, it is calculated at the time the whole survey is submitted?

I do think there is a server issue, but I like to make sure the various equation questions don't add to the issue.

cheers,
Auke

Please Log in or Create an account to join the conversation.

More
3 weeks 4 days ago #193118 by jelo

aukevann wrote: Ok, so when in the equation question I make a calculation using the answers of other questions, it is calculated at the time the whole survey is submitted?

The serverside calculation is done when you leave the page with the equation question. There is no mega burden on the submitpage. A typical delay on the last page is happening when you activate notifications via email for submitted surveys. If the emailserver is not accepting the email quick enough, the survey submission is having a longer delay.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 weeks 4 days ago #193119 by aukevann
Ah thanks, we do send out three confirmation mails so that may be the issue. Very helpful to know.

cheers,
auke

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago #193154 by DenisChenu
In page by page mode : Equation is done when it must done during surey (even if hidden)

If you put the equation at last : yes, it was done when submit, but then : button is move next and not move submit :).

Then : if your last button are move submit : it's not the equation question.

Anbd it's easy toi check : test without any expression in equation :)

Sending 3 emails can be the issue : if you use smtp 3 connection to do one by one …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago #193156 by aukevann
Thanks Denis, very helpful

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!