Skip to main content


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

Hybrid data storage model (pzPVStream BLOB)

Updated on May 11, 2022

Most columns in the database schema correspond to scalar properties of property mode Single Value. The column name is the same as the property name. These columns are known as exposed columns.

For example, the pzInsKey column is the primary key of every table, which corresponds to the value of the @baseclass.pzInsKey property, present in every instance of every class. Similarly, the column named pyStatusWork in the pc_work table corresponds to the property Work-.pyStatusWork.

Properties of many Pega Platform property types, including Text, Identifier, Password, and Decimal, correspond to string (VARCHAR) database data types. Properties of mode Integer, and Double can be stored as NUMBER database data types. Techniques for storing DateTime property values differ by database vendor.

Values of properties with a mode other than Single Value (such as mode Page or Page List ) are stored in a special column named pzPVStream. This column is known as the Storage Stream and has a BLOB (Binary Large Object) data type.

The size of the Storage Stream values can have a significant effect on memory demand, network traffic, and overall performance. To help detect and address issues related to the BLOB size, multiple types of alerts (PEGA0004, PEGA0025, PEGA0039, and PEGA0040) monitor database activity and report exceptional conditions involving Storage Stream values.

You can set up data compression for the BLOB column by using the DeflateStreams setting in the prconfig.xml file or Dynamic System Settings. When enabled, compression and decompression occur on the Pega Platform server using the java.util.ZIP class. See the Pega Community article How to compress BLOB values in the PegaRULES database.

Note: If you have a table that does not need a BLOB column, you can remove it to improve performance. See the Pega Community article How to remove an unneeded BLOB column.

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