Search code examples
deploymentliferayliferay-6

Liferay deploy backup with changes in database


When I'd modified or create new tables in Liferay 6.1 and deploy in production server. Liferay automatically makes a backup of each table.

This backup takes a long time when a table has more than 10k records. And a century when has 100k. Although this table hasn't been modified.

What can I do for optimice the deployment to the server?

Many thanks in advance,


Solution

  • At the moment I think only two options are available:

    1. (easy way) Set "build.auto.upgrade=false" in /WEB-INF/src/service.properties to avoid any automatic updates, and perform the db changes (if any) manually.

    2. (hard way) Reworite the Liferays ServiceBuilder so that it perform an update only on those tables which were changed. This will require an EXT development as it is a very core change, and for every next Liferay version you will need to carefully review it and upgrade.