Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions forms/calculated-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ A couple of mutations act as entrypoints to evaluation of the export and lead to

### Limitations

Currently the calculated questions cannot reference other calculated questions. This is an intentional limitation to avoid implementation complexity (dependency calculation "propagation", circular dependency checks).

Additionally only existing questions can be referenced at the time of saving. This is because of optimizations in the way caluma tracks references of calculated questions. Specifically, caluma writes the reverse-dependencies to the database at the moment a calculated question is saved. If a referenced question would be missing at this point, it couldn't memoise the calculated question and thus not update if an answer is created or updated.
Only existing questions can be referenced at the time of saving. This is because of optimizations in the way caluma tracks references of calculated questions. Specifically, caluma writes the reverse-dependencies to the database at the moment a calculated question is saved. If a referenced question would be missing at this point, it couldn't memoise the calculated question and thus not update if an answer is created or updated.