Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Updated stored procedure, sppr_sys_reservequeueitem_b

Updated on September 25, 2019

The Pega-provided stored procedure sppr_sys_reservequeueitem_b is used for various Pega processes. Over time, this stored procedure has been updated to improve its performance.

The indexes, which are displayed as text in this article, and the stored procedure, which can be downloaded from the Product Resource link under Related Content at the bottom of this article, are included in Pega 7.2.1 and later releases. If you are running a release prior to Pega 7.2.1, you can safely apply the following index changes and stored procedure code to your Pega environment. (Find the ZIP file under Related Content, Product Resource.)

Note:

You need to properly schema-qualify the tables with your data schema name in both indexes and stored procedures. That is, you must qualify all tables with your data schema in both the following indexes and the stored procedures in the attached ZIP file.

Oracle, DB2 for z/OS, and DB2 for LUW (formerly UDB)

MSSQL

PostgreSQL

Oracle, DB2 for z/OS, and DB2 for LUW (formerly UDB)

Note: The attached Product Resource ZIP file includes the script file named sppr_sys_reservequeueitem_b_udb.txt.zip. Although this file name indicates the old name, IBM DB2 Universal Database, the script is valid for IBM DB2 for Linux, Unix, and Windows (LUW), the new name for this product.

CREATE INDEX pr_sys_queues_index1

ON data_schema.pr_sys_queues

(

    PYITEMSTATUS asc,

    PYAGENTNAME asc,

    PYMINIMUMDATETIMEFORPROCESSING asc,

    PZINSKEY asc

)

/

CREATE INDEX pr_sys_queues_index2

ON data_schema.pr_sys_queues

(

    PYITEMID asc,

    PYITEMSTATUS asc,

    PXPROCESSINGNODEID asc

)

 

MSSQL

CREATE INDEX pr_sys_queues_index1

ON data_schema.pr_sys_queues

(

    pyItemStatus asc,pyAgentName asc,pyMinimumDateTimeForProcessing asc,pzInsKey asc

)

go

CREATE INDEX pr_sys_queues_index2

ON data_schema.pr_sys_queues

(

    pyItemId asc,pyItemStatus asc,pxProcessingNodeId asc

)

go

PostgreSQL (Postgres)

CREATE INDEX pr_sys_queues_index1

ON data_schema.pr_sys_queues

(

    pyitemstatus asc,

    pyagentname asc,

    pyminimumdatetimeforprocessing asc,

    pzinskey asc

)

;

 

CREATE INDEX pr_sys_queues_index2

ON data_schema.pr_sys_queues

(

    pyitemid asc,

    pyitemstatus asc,

    pxprocessingnodeid asc

)

;

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us