I have two queries.
1. one dumps some contents from one database to another
2. second dumps some contents from one table to another inside the same database.
I find the second query very slow.Please help me.
Query1--
INSERT INTO devendor.job (taskid,inputxml,status) SELECT dw.taskid, dw.rawdata,'f' FROM demaster.workbasket as dw WHERE dw.taskid BETWEEN '379' AND '384';
Query OK, 8 rows affected (0.02 sec)
Query2--
INSERT INTO assignment(taskid,inputxml,keydetail) SELECT dw.taskid,dw.rawdata,dw.keydetail FROM workbasket as dw WHERE taskid BETWEEN '379' AND '384';
Query OK, 6 rows affected (4.47 sec)
Records: 6 Duplicates: 0 Warnings: 0