Hi Team,
Our databases sizes are growing rapidly (Close to 100MB every month) and we find that substantial size is taken by the Shopify Log.
We don’t require the Shopify Log which are more than a 2 weeks old. Hence we are planning to deleting the same.
When we use the frappe.delete_doc() it is taking lot of time and some times the terminal where the delete command is run becomes unresponsive. Hence deletion is not completed properly.
if we try to delete using the raw SQL Query, it is getting deleted rapidly.
Would like to know if there are any side effects or impacts of deleting it using Raw Query over delete_doc()?
How to use delete_doc() in delete very large number of records?
Thanks,
Saravana