Question
Ordina
NL
Last activity: 17 Oct 2022 5:21 EDT
Saving embedded data from a declare index or savable data page?
Hi, If we want to save an embedded page, we can:
- Use a declare index to write data to an index table
- Leverage a savable data page to write data to a SOR
- Write an activity to do an Obj-Save
I can see why a savable data page trumps using an activity with an Obj-Save in most cases. However, I'm more curious about when we can use a declare index to save embedded data, because there are some common denominators between them:
- Both options use a seperate table to store data / both options store data outside of the BLOB of the case
- Both options are declarative (whenever a property or datapage reference is used, data is saved)
And some differences:
- Index table uses Index-, savable data pages use Data-
- Referencing data from an index table in UI is a lot less straightforward than referencing the same savable data page that can also be used to perform a lookup
- Data pages provide caching, a refresh strategy and conditional sources, index tables can only conditionally index case data
So in most cases we can choose savable data page as a more flexible and implementation hiding option, but are there also cases where we would absolutely benefit from using declare indexes?