Is the next solution will work good in case of 10000+ items ?
q = db.GqlQuery('SELECT __key__ FROM Event where date_create < [DATE(2012, 1, 23)]')
db.delete(q)
What is the right solution to bulk delete ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As shown in the implementation, the datastore module will batch multiple delete RPCs if the number of keys is >
MAX_DELETE_KEYS(500).You should do this in a task queue as it might take more than 60s, and will trigger a
DeadlineExceededException.