Files
RecordAppInsights/mergeData.sql

8 lines
204 B
MySQL
Raw Normal View History

2020-10-22 13:37:44 -05:00
select 'Merging Stage into requests';
insert into requests select * from stage where not exists (select 1 from requests where requests.id=stage.id);
2020-10-23 17:49:37 +01:00
drop table stage;
select 'Vacuuming the DB';
vacuum;
2020-10-22 13:37:44 -05:00