Browse Source

Fix possible slow reindexing on MariaDB #704

Mark Shust 2 years ago
parent
commit
f3c663f755
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compose/docker-compose.yml

+ 4 - 1
compose/docker-compose.yml

@@ -37,7 +37,10 @@ services:
 
 
   db:
   db:
     image: mariadb:10.4
     image: mariadb:10.4
-    command: --max_allowed_packet=64M
+    command:
+      --max_allowed_packet=64M
+      --optimizer_use_condition_selectivity=1
+      --optimizer_switch="rowid_filter=off"
     ports:
     ports:
       - "3306:3306"
       - "3306:3306"
     env_file: env/db.env
     env_file: env/db.env