Upgrade index

Swarm Upgrade index can be configured to suit the performance of your Swarm system via the following config items.

status_refresh_interval

The status_refresh_interval sets the refresh rate of the index upgrade status page. The default is 10 seconds.

<?php
// this block should be a peer of 'p4'
'upgrade' => array(
'status_refresh_interval' => 10, //Refresh page every 10 seconds
),

batch_size

The batch_size sets the number of reviews held in memory and processed for each batch. This value can be increased or decreased depending on your Swarm machines system memory. The default is 1000 reviews.

For example:

If the Swarm machine does not have a lot of memory, for instance 128MB, a batch_size of 1000 might be too high and may make the upgrade run very slowly. In this instance reduce the batch_size to a more manageable size.

<?php
// this block should be a peer of 'p4'
'upgrade' => array(
'batch_size' => 1000, //Fetch 1000 reviews to lower memory usage
),
Important

The Swarm index must be upgraded to ensure that the Swarm review history is displayed in the correct order.

Note

Only required the first time you upgrade your Swarm system to 2017.3 or later. Subsequent Swarm upgrades do not require the index to be upgraded.

Note

Not required if your Swarm system has less than 100 reviews. In this case Swarm will automatically upgrade the index on the fly.

Note

Not required if this is a new Swarm installation.