Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3739

Model Syncronization and Generated fields (no replies)

$
0
0
Hi,
I am experiencing an issue since upgrading workbench to version 8. When synchronizing a table that contains generated fields is always selected for syncronization, and thus recalculation. This table may contain many millions of records and thus the process takes an extremely long time, and lock the table in question too.
Right now I just ignore the table when doing a sync, however this is not a viable long term approach. In the prior version of the workbench this table was not selected for alteration.

the denerated alter statement is as follows:-
ALTER TABLE `db6`.`address`
CHANGE COLUMN `Valid8` `Valid8` TINYINT(1) GENERATED ALWAYS AS (case when ValidState in(8,9) then 1 else 0 END) STORED ,
CHANGE COLUMN `Valid3` `Valid3` TINYINT(1) GENERATED ALWAYS AS (case when ValidState = 3 then 1 else 0 END) STORED ,
CHANGE COLUMN `Valid_tFail` `Valid_tFail` TINYINT(1) GENERATED ALWAYS AS (case when ValidState in(0,4,5) then 1 else 0 END) STORED ,
CHANGE COLUMN `Valid_nVer` `Valid_nVer` TINYINT(1) GENERATED ALWAYS AS (case when ValidState in(6,7) then 1 else 0 END) STORED ,
CHANGE COLUMN `Valid_UT` `Valid_UT` TINYINT(1) GENERATED ALWAYS AS (case when ValidState = 99 then 1 else 0 END) STORED

I hope I am missing something relatively silly,
Thanks in advance for any guidance
-Allen

Viewing all articles
Browse latest Browse all 3739

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>