You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set of model objects, which I would prepareDestroyPermanently.
Each object has @children documents. I'm not sure that iterating though them to prepareDestory for each is a nice idea.
So, I want to add into a batch a simple sql to delete such rows (btw I didn't find prepareDestroyAll).
So, is there a way to put into a batch a raw sql query?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have set of model objects, which I would prepareDestroyPermanently.
Each object has @children documents. I'm not sure that iterating though them to prepareDestory for each is a nice idea.
So, I want to add into a batch a simple sql to delete such rows (btw I didn't find prepareDestroyAll).
So, is there a way to put into a batch a raw sql query?
Beta Was this translation helpful? Give feedback.
All reactions