Inspections: Difference between revisions

Jump to navigation Jump to search
Line 172: Line 172:
When an inspector starts answering a questionnaire in the app, a new copy of the template is created. For an answered questionnaire, we store both questions and answers. When you enable template dependency, the answered questionnaire is no longer self-contained (it refers to the template) but each answer needs less data (faster sync and less database storage). How self-contained should answers be is configured on the questionnaire template's '''Properties''' pane, in the '''Template Dependency''' field.
When an inspector starts answering a questionnaire in the app, a new copy of the template is created. For an answered questionnaire, we store both questions and answers. When you enable template dependency, the answered questionnaire is no longer self-contained (it refers to the template) but each answer needs less data (faster sync and less database storage). How self-contained should answers be is configured on the questionnaire template's '''Properties''' pane, in the '''Template Dependency''' field.


Questionnaire data can be saved in three different formats:
Questionnaire data can be saved in formats:


* Record-based model (default): Each answer in a questionnaire is a record.
* Record-based model: Each answer in a questionnaire is a record.
* JSON / compressed JSON: Answers are stored in JSON format that might be compressed. JSON requires fewer records and may result in faster synchronization. However, analyzing the answers may require additional effort.
* [[JSON storage for questionnaires|JSON]]: Answers are stored in JSON format that might be compressed. JSON requires fewer records and may result in faster synchronization. However, analyzing the answers may require additional effort.


The data model can be configured on the questionnaire template's '''Properties''' pane, in the '''Answer Storage''' field.
The data model can be configured on the questionnaire template's '''Properties''' pane, in the '''Answer Storage''' field.

Navigation menu