One more question,
One of the tables this query will be running on has referential integrity turned on and deleting from it is very slow. It has around 8mil rows and it takes longer to delete it than another table with 30mil. Will this slow it down any more?
As apposed to running this a bunch of times
Code:
delete
from myschema.mytable
where id_col in
(select id_col
from myschema.mytable
where var = invar
fetch first 250000 rows only
);
commit;