I want to delete bunch of records from a table like,
delete from Table1 where col1 in (select col1 from Table2);
now col1 from Table2 will be some where b/w 200-500.
But Table1 will be having 3000-5000 records for a single entry from Table2.
Hence instead of deleting at a stretch, I want to get the col1 from Table2
in some Java datastructures. ..
And I want to delete the records using Threads.. like 5 threads at a time deleting records from Table1 for 5 entries from Table2.
I dont know whether it will work. I'm not aware of the Lock during delete operation. Please tell me whether it will work.. Or please suggest some solution..
delete from Table1 where col1 in (select col1 from Table2);
now col1 from Table2 will be some where b/w 200-500.
But Table1 will be having 3000-5000 records for a single entry from Table2.
Hence instead of deleting at a stretch, I want to get the col1 from Table2
in some Java datastructures. ..
And I want to delete the records using Threads.. like 5 threads at a time deleting records from Table1 for 5 entries from Table2.
I dont know whether it will work. I'm not aware of the Lock during delete operation. Please tell me whether it will work.. Or please suggest some solution..
Comment