Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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,

like image 564
Antonio mc Avatar asked Nov 27 '25 09:11

Antonio mc


1 Answers

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.

like image 72
Artem Khojoyan Avatar answered Nov 29 '25 23:11

Artem Khojoyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!