Keyed data pages
Keyed data pages are used to avoid querying the database every time a user interacts with the application. Instead, they cache the information within the case, so whenever the data is accessed, it is already preloaded on the case clipboard. This makes the application more efficient and reduces database hits.
When to use keyed data pages
In my experience, the most common use of keyed data pages is for dropdowns and sometimes tables. The Pega CSSA course provides examples of when to use this type of data page. From my perspective, keyed data pages are ideal when you need to filter data. You send the parameters for the data, and the keyed data page returns a filtered list based on those parameters.
Sometimes i encountered scenarios where you need to query data form an external database, and making queries every time that we change a parameter can affect the preformance to the application, this could impact directly on the user making the interface slow and could lag sometimes, to avoid this whe use a key data page
How to configure a keyed data pages
- Create a data page
- on the structure we select List
- on the mode of the data page we select Read-Only
- Scope we select Thread
- On the Keyed page access cheked the option Access pages with user defined keys
- On the Page list keys , we select the .pyGUID as the default identificator

Comments
Post a Comment