Question

1
Replies
17
Views
Jerome Recker (Jerome@quavo)
375008155608
Lead System Architect
375008155608
US
Jerome@quavo Member since 2015 31 posts
375008155608
Posted: July 12, 2021
Last activity: July 19, 2021
Posted: 12 Jul 2021 9:49 EDT
Last activity: 19 Jul 2021 0:08 EDT

Populating DeclareIndex Properties On Implementation Classes

https://community.pega.com/knowledgebase/articles/system-administration/84/scheduling-indexes-population

 

When doing an  import of a product rule that includes new declare index based properties, there is an option to populate the index values.  This seems to work fine when the index is defined in the exact class of the work object that has the properties to be indexed (ex: my index is in myco-fw-work and the actual work class is myco-fw-work).  If however, your declare index is defined in myco-fw-work, and the implementation class is myImpl-work (direct inherits to the myco-fw-work class), then the importer does not create indexes for those classes...it tries to add them for the fw class, which because it isn't the real runtime class, it will never actually add the indexes.

 

Does anyone know if there is a simple out of box work around for this?  We've built a custom queue processor that runs the RecreateIndexesForInstance activity but this does not seem nearly as performant as the ootb indexer that runs on the fw class during import.

 

@pega, it would be slick if the product rule import wizard evaluated the indexes and gave you a checkbox option list of classes for which to run the job against.

***Edited by Moderator Marissa to update Content Type from Discussion to Question***
Pega Platform 8.5 Pega Platform 8.6 Pega Platform 8.4 Pega Platform 8.3 Pega Platform 8.2 Enterprise Application Development Dev/Designer Studio Cloud Services Pega Cloud System Administration Installation and Deployment Technology Services Lead System Architect