Increment Storage
This feature has been introduced with Shopware version 6.4.7.0
The increment storage is used to store state and display it in the Administration. This can include
  • status of the message queue
  • last used module of administration users.
This storage increments or decrements a given key in a transaction-safe way, which causes locks upon the storage.
Shopware uses the increment table to store such information by default. When multiple message consumers are running, this table can be locked very often and decrease the workers' performance. By using a different storage, the performance of those updates can be improved.

Using Redis as storage

To use Redis, create a config/packages/shopware.yml file with the following content
1
shopware:
2
increment:
3
user_activity:
4
type: 'redis'
5
config:
6
url: 'redis://host:port/dbindex'
7
8
message_queue:
9
type: 'redis'
10
config:
11
url: 'redis://host:port/dbindex'
Copied!

Disabling the Increment Storage

The usage of the increment storage is optional and can be disabled. When this feature is disabled, Queue Notification and Module Usage Overview will not work in the Administration
To disable it, create a config/packages/shopware.yml file with the following content
1
shopware:
2
increment:
3
user_activity:
4
type: 'array'
5
6
message_queue:
7
type: 'array'
Copied!
Last modified 18d ago