ALTER TABLE in mysql/mariadb

Mei­ne Fresse:

MariaDB [(none)]> show processlist ;
+--------+--------+-------------------------+--------+---------+-------+-------------------+-----------------------------------------+----------+
| Id     | User   | Host                    | db     | Command | Time  | State             | Info                                    | Progress |
+--------+--------+-------------------------+--------+---------+-------+-------------------+-----------------------------------------+----------+
| 271076 | root   | localhost               | zabbix | Sleep   | 13259 |                   | NULL                                    |    0.000 |
| 271105 | zabbix | raspberrypi.local:45276 | zabbix | Query   | 19515 | copy to tmp table | alter table history_text drop column id |   19.379 |
| 271706 | root   | localhost               | NULL   | Query   |     0 | init              | show processlist                        |    0.000 |
+--------+--------+-------------------------+--------+---------+-------+-------------------+-----------------------------------------+----------+
3 rows in set (0.00 sec)

MariaDB [(none)]>

Das läuft jetzt seit ca. 6 Stunden!

Na gut, es sind 2928106 Daten­sät­ze, der “Ser­ver” ist ein Odroid C2 und die DB-Files lie­gen auf einer vie USB2 ange­schlos­se­nen Plat­te, iowait laut top kon­stant um die 50% herum.
Aber soll­te die Anzahl der Daten­sät­ze für ein DROP COLUMN nicht völ­lig Bana­ne sein? innodb.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert