Thank you for your answer.
I've written a PL/SQL script wich performs exactly the same you wrote. It contains almost all checks for values included in tables, not dummy "delete from <table>" without any where condition. And it took 14 seconds to execute.
You are right, this is very uncommon operation in production, but now we're in development mode and do this often (in order to clear dirty products or debug data). So we have to suffer this or call native SQL script.
!Btw, deleting category with its products with KonaKart doesn't delete values from products_to_products table! It seems to be a clear bug.
I've written a PL/SQL script wich performs exactly the same you wrote. It contains almost all checks for values included in tables, not dummy "delete from <table>" without any where condition. And it took 14 seconds to execute.
You are right, this is very uncommon operation in production, but now we're in development mode and do this often (in order to clear dirty products or debug data). So we have to suffer this or call native SQL script.
!Btw, deleting category with its products with KonaKart doesn't delete values from products_to_products table! It seems to be a clear bug.