Documentation
Liferay provides a rich store of resources and knowledge to help our community better use and work with our technology.
Counter
The counter operates with its own data source to prevent deadlocks. By default, the data source created for the counter uses the same settings as those used to create the data source used for the rest of the portal. That happens because the counter service will look up the properties prefixed with jdbc.default. to create its data source. See the JDBC properties prefixed with jdbc.default. for more information.
Setting a different value for the counter JDBC prefix allows you to better fine tune the counter data source with its own set of configuration settings for high availability installations. Note that these settings, though separate, are a copy of the default settings with the newly overridden values.
counter.jdbc.prefix=jdbc.default.
Set the number of increments between database updates to the Counter table. Set this value to a higher number for better performance.
counter.increment=100
You can further fine tune the counter increment for specific counter names. This entry will ensure that the counter name com.liferay.portal.model.Layout or anything that starts with com.liferay.portal.model.Layout# will only increment by 1.
counter.increment.com.liferay.portal.model.Layout=1