You are here: Pega Platform database > Database tables and columns > Property optimization > Populating properties by using a direct connection to the database

Populating properties by using a direct connection to the database

You can use the prpcServiceUtils tool to extract a property value from the Storage Stream or pzPvStream (BLOB) column into a newly added table column, by using a web service to connect to an active instance of Pega Platform. As a best practice, use the Database Column Populator when Pega Platform is not running.

You can run the Database Column Populator utility when Pega Platform is in use. However, the utility does not acquire a database lock on the rows it modifies. If a requestor updates an object at the same time that the Database Column Populator updates the corresponding database row, one of the updates might be overwritten and lost.

To populate newly exposed properties by connecting directly to the database, complete the following steps.

  1. Configure the classes.

    To specify the data for populating the new column, use the include and exclude classes properties. For example, if you include Rule- with descendants and exclude Rule-File- with descendants, Pega Platform processes all descendant classes of Rule-, except rules in Rule-File-.

  2. Save and close the prpcUtils.properties file.
  3. To populate the columns, run the prpcUtils.bat or prpcUtils.sh script with the expose option, for example:

    prpcUtils.bat expose