Open huygn opened 6 years ago
@huygn
Now go-mysql-elasticsearch
doesn't support DDL, you have to delete the master file and re-sync all. As you see above, it will first use mysqldump to dump all the data which may take a long time.
I will try to support simple DDL like adding/removing columns later.
@siddontang
you have to delete the master file and re-sync all
Did you mean the master file inside var
dir? I did rm -rf ./var && ./bin/go-mysql-elasticsearch
but then it skip the whole table
I notice this problem only affect when you have a generated column in a table, if I do like below the table got synched again
ADD full_name VARCHAR(512)
oh, generated column is not in the future plan.
My
contacts
table has been synced until I run this sql to add a generated columnWhen I delete the index and run
go-mysql-elasticsearch
again (deletedvar
dir),contacts
table didn't get synced at all - it somehow got skipped in the dump/parse process (previously took ~12sec to dump my db, after I ran the query it took 0.4sec), other tables are still synced though.