ruby - Data replication between tables with same column names in Mysql -
we have main table containing users past 1 year no matter whether expired or active users containing 70 million user records.
this table slow in performance, wanted re-create table better indexing , better data type allocation , insert records main table new table date.
the main table getting updated/inserted every minute, dynamic.
without missing user, need insert records (70 million) main table new table.
which best way this? how long take insert 70 million records, asynchronously.
is there data replication available?
is there any1 please suggest me best solution this, need new table up-to-date faster.
will simple insert select not solve problem ?
lock tables `oldtable` write; insert `newtable` select * `oldtable`; unlock tables;
Comments
Post a Comment