Hi,
Is there a way of deleting multiple objects in Appery DB?
Like "delete all objects from collection X older than a certain date"?
Thanks Bye Marco.
Hi,
Is there a way of deleting multiple objects in Appery DB?
Like "delete all objects from collection X older than a certain date"?
Thanks Bye Marco.
Hi,
Do you want remove objects manually or with Backend Service?
HI Igor,
Actually, both are interesting to me.
Thanks.
You can delete multiple objects manually and with Backend Service.
Manualy you can create query in collection.
From app you should make a query, save result to local storage variable, and call rest service for each saved object_id .
Look at tutorial http://docs.appery.io/documentation/b...
Thanks...
I suspected this ... bad news actually.. It means if i have to delete 1000 objects it will count 1000 calls to your DB.
Not really convenient...
Also as to the manual method, did iI get it right that I would have to run a query and then manually select objects in group of 5 (the pagination works in group of 5 in the User Interface ) and delete them?
Will this count transactions on the DB?
Thanks. Bye. Marco.
When working via the admin console, those requests are not counted.
I also need this functionality for a PURGE function for my app, purging old items from my collection;
official docs;
http://docs.mongodb.org/manual/refere...
suggestion based on date
http://stackoverflow.com/questions/18...
would really like to see this Method in the services.
Added to our todo list.
Any ETA?
Adding the remove() method would be really helpful. If you do, please allow the option to use it with no parameters, to remove all rows from a collection, as well as with a query. Thank you.