Run MariaDB with --transaction-isolation=READ-COMMITTED to reduce locking #392
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
d3fb59c537
commit
23279e6147
|
@ -60,7 +60,7 @@ services:
|
|||
|
||||
photoprism-db:
|
||||
image: mariadb:10.5
|
||||
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
expose:
|
||||
- "4001"
|
||||
volumes:
|
||||
|
|
|
@ -62,7 +62,7 @@ services:
|
|||
|
||||
photoprism-db:
|
||||
image: mariadb:10.5
|
||||
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
expose:
|
||||
- "4001"
|
||||
ports:
|
||||
|
|
|
@ -61,7 +61,7 @@ services:
|
|||
# photoprism-db:
|
||||
# image: mariadb:10.5 # Alternatively mysql:8.0
|
||||
# restart: unless-stopped
|
||||
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
# command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
|
||||
# volumes:
|
||||
# - /var/lib/mysql
|
||||
# environment:
|
||||
|
|
Loading…
Reference in New Issue
Block a user