Skip to main content

Table of Contents

Hybrid data storage model (pzPVStream BLOB)


Only available versions of this content are shown in the dropdown

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.

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.
Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us