Question
Last activity: 4 Oct 2018 13:54 EDT
More about Keyed Page Access
Hi,
I have gone throw below article to know about the concept of keyed Page Access, it says more about how to use it ,but i would like to know why to use it ? ,when to use it ? and how it can improves an application performance.
Please share information about internal mechanism of keyed page access.
https://pdn.pega.com/instantly-access-embedded-pages-list-structure-data-page
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi brahmeswara rao,
I found an internal document created by Kullayi Bellala that states the following:
In Data_Page we have a feature called Keyed Page Access. For list-structure data pages, you can allow read-only access to embedded pages in the data page, using any property or properties you want as the key. This permits significantly faster response when dealing with a large list. In Keyed Page access we have an option "Allow multiple pages per key" check box to get results as single Page or multiple pages.
Does that help you out a bit?
Already I got the information from PDN help, but I would like to understand the mechanism of Keyed Page Access especially how it helps in application performance .when we go for keyed Page Access feature .
Pegasystems Inc.
US
The statement quoted by Marissa should already tell you when to use it: large list with read-only access. The performance is achieved typically through Map versus List. To give you a test how this is achieved:
Here is a sample of unit test code:
The statement quoted by Marissa should already tell you when to use it: large list with read-only access. The performance is achieved typically through Map versus List. To give you a test how this is achieved:
Here is a sample of unit test code:
String aPageName = "KPLReadOnlyVL"; | ||||
String pyClassName = "Rule-Obj-Property"; | ||||
String[] pyMappings = new String[]{".pyLabel", ".pyPropertyName", ".pyPropertyMode", ".pyRequired", ".pyIsReference", ".pyClassName"}; | ||||
ClipboardPage page = getListTypePage(this, aPageName, pyClassName, pyMappings, true); | ||||
ClipboardPropertyAPI resultsProp = (ClipboardPropertyAPI) page.getIfPresent(".pxResults"); | ||||
StringMap keyValueMap = new HashStringMap(); | ||||
FilteredClipboardProperty filteredProperty = null; | ||||
keyValueMap.put(".pyClassName", TEST_CLASS1); | ||||
keyValueMap.put(".pyPropertyName", TEST_PROPERTY_NAME); | ||||
resultsProp.setListKeys(keyValueMap.keySet(), true); | ||||
filteredProperty = resultsProp.getFromListByKeys(keyValueMap); |
Thanks Kevin ..I do understand keyed page access is used to deal with large list with read-only access . it is being used only to access the data but not fir fetching the data from source.
Keyed Page Access mechanism looks like define an index on a attribute ,so it helps in search for a single record among bunch of records .
no use of keyed page access if App is trying to access all records.
Please correct me if i got it wrong.
Softserve Inc
US
is it possible to access keyed access pages from data transforms ? if yes how can you access keyed page in activity or data transform can you share the syntax
help file talks about accessing data pages with parameters not about keyed access. the syntax shared in help dont work for keyed access pages.
<data page name>[<comma delimited list of parameter name:value pairs>]
Thanks,
Synechron
US
How do we access a keyed data page within an Activity or Data Transform and pass the values for the keys
This comment has been branched out as a new node and the new thread can be followed here
Pegasystems Inc.
IN
Hi Vishal,
A new post has been created so that your question can get more visibility. Please continue the discussion in the new post.
Regards,
Lochan | Community Moderator | Pegasystems Inc.