-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Steps to reproduce
- Use a QueryTask in a version handler
- Update an instance
Expected results
If I know the content I want to update a content that shouldn't be updated in the same Magnolia version update, I should be able to use the QueryTask without a warning (at least on the installation screen).
Actual results
QueryTask produces a warning introduced by MAGNOLIA-5857, making developers use
NodeVisitorTask which in turn introduces performance issues (especially because info.magnolia.module.delta.NodeVisitorTask#getFilteringPredicate doesn't filter out any nodes, making the tasks iterate on all system nodes), see linked tickets.
Workaround
Use the QueryTask despite the warning.
Development notes
The warning was quite useful at the time it was introduced as we had huge amount of updates, often depending on changes in the same session. Nowadays are the update tasks rare especially due to do config in YAML and often developing only using light modules.
- is caused by
-
MAGNOLIA-5857 Provide a NodeVisitorTask and emphasize QueryTask as "unsafe"
- Closed
- is causing
-
MGNLPN-535 Task 'Change structure of mgnl:persona nodes' failed
- Closed
-
MGNLPN-536 Task 'Change structure of mgnl:segment nodes' failed
- Closed