How to Configure Price List Sharding¶
Data sharding allows to improve OroCommerce operation and accelerate database performance when handling big volumes of data.
In terms of price lists, data sharding is used to split one big table of price lists into smaller tables, i.e. one table per price list.
By default, price list sharding is disabled.
However, it is recommended to enable price list sharding if you are experiencing product performance degradation, or for high load deployments with a large number of price lists and products within them.
For PostgreSQL, make sure you have PostgreSQL uuid-ossp extension loaded.
Combined prices cannot be sharded at the moment.
Configure Price List Sharding¶
To enable price list sharding, set the following parameter in config/parameters.yml:
To reorganize storage and shard the price table, run the following command:
oro:price-lists:pl-storage-reorganize prices --strategy=sharding
Disable Price Sharding¶
To restore the default price storage structure:
To disable price list sharding, change config/parameters.yml to set
To reorganize storage and join sharded price tables into one, run the following command:
oro:price-lists:pl-storage-reorganize prices --strategy=base