Rebuilding Studio Database

Step 1: Configure Rebuild Database Service

Update Studio configuration TOMCAT/shared/classes/crafter/cstudio/extension/ to add/modify following properties

# Preview content root path
# Rebuild Repository Metadata job batch size

Step 2: Invoke Rebuild Database Service

curl http://hostname:port/studio/api/1/services/api/1/site/rebuild-repo-metadata.json?site=SITE_TO_REBUILD_DB

Step 3: Wait for Rebuild Database Service

Rebuild Database service is executed as background job that processes whole content divided in batches. Batch size is configured in Step 1. If job is interrupted before rebuild is completed (server restart or shutdown), when service is invoked again, it will continue with the batch that was interrupted.