how to design a 500+questions survey?

More
4 years 3 months ago - 4 years 3 months ago #113953 by david2013
It seems like we can have more than 1000 columns. I create a testing survey. 16 groups. each group contains 1 multiple choice question. And each multiple question contains 100 items. So I have around 1600 columns in the result table. It seems fine. (i.e. I can test it and export the data).

Am I suppose to see error message when I reach the limit of column? If anyone have experience of reaching limit. Please share. I use local php server (easyPHP: APACHE 2.4.4 MYSQL 5.6.11 PHP 5.5.0)
Last edit: 4 years 3 months ago by david2013.

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

More
4 years 3 months ago - 4 years 3 months ago #113955 by Mazi
You can always test if you reach the column limit by (temporarily) activating the survey.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com
Last edit: 4 years 3 months ago by Mazi.

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

More
4 years 3 months ago - 4 years 3 months ago #113989 by david2013
I tested it as I mentioned previously. I think I know why I can have more than 1000 columns. It seems Limesurvey use MyISAM as default storage engine. (See database_helper.php: $sOptions='ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci';)

Just wondering why not use InnoDB as default as it has many more features? (i.e. Transactions, Row Locking, Relational base design , etc).

Just a thought
Last edit: 4 years 3 months ago by david2013.

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

More
4 years 3 months ago #113992 by Mazi
To my knowledge InnoDB uses more bytes per column and thus limits the amount of total questions even more which is the main reason we are still using MyISAM.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

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

More
3 years 11 months ago #117769 by iscar
i think lots of problems will happen if we have no a high level mysql design.
we are in big data or die

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

More
3 years 11 months ago - 3 years 11 months ago #117771 by c_schmitz
InnoDB only supports 1000 columns at a maximum.

With MyISAM you have at least the chance to have more than 1000 - as already said it depends on the question types and number of subquestion how many you really have.
And, we don't need row locking or transactions - survey participants primarily write, administrators read. There is rarely a different scenario, so advanced InnoDB features are beaten by the faster MyISAM engine.

Best regards

Carsten Schmitz
LimeSurvey project leader
Last edit: 3 years 11 months ago by c_schmitz.

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

More
3 years 11 months ago #117815 by DenisChenu

c_schmitz wrote: With MyISAM you have at least the chance to have more than 1000 - as alread said it depends on the question types and umber of subquestion how many you really have.

Near the max: 728 question + 670 sub question ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
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 years 11 months ago #117854 by iscar
in big data time, we always need a survey with over 1000 questions,i think myisam is good choice.
the problem is mysql database design, ls has no a robust database design foundation. eg, put all things in one table.that's not best database design concept.tha's almost the most important thing of a system.

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

More
3 years 11 months ago #117855 by holch
"Big data" usually isn't collected in survey style but comes from other sources.

Just out of curiosity: Who fills a 1000 question survey? I am sure this is is a very special case.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
3 years 11 months ago - 3 years 11 months ago #118247 by jelo

holch wrote: Just out of curiosity: Who fills a 1000 question survey? I am sure this is is a very special case.

If you use many conditions and filters you don't need to fill out 1000 questions.

Wonder if the php session file for every user would be even bigger with a 1000 questions survey than with simple surveys, where every user got a 1 to 1,6 MB session file created, when starting the survey. That is a problem with session files on tmp partitions.

For me "Big data" starts if a database is 500GB and more.

Would be interesting to see some database designs of other applications with survey elements.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 3 years 11 months ago by jelo.

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

More
3 years 11 months ago #118249 by holch
Maybe not everyone will fill 1000 questions, but still, this is well beyond most questionnaires that I have ever seen.

Even an insane 1 hour CAPI questionnaire that we had to run some time ago should get anywhere close to that. Loads of conditions and paths depending on specific vehicle models that the respondent had to own would hide many of the questions and it still took easily 1 hour to fill, even with experienced interviewers. I need to find this monster again, but my guess would be about 200-300 questions.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
3 years 11 months ago #118250 by holch
By the way: are you a sleep walker? Its 3am over there already... go and sleep! ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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!