[storm] Freeze while dropping multiple rows spanning multiple tables
akira
nhytro-python at web.de
Tue Oct 2 19:37:29 BST 2007
ahh, thats a tip, should I commit after every table ? Like this?
store.find(JobseekerApplication, JobseekerApplication.user_id ==
session["user_id"]).remove()
store.commit()
store.find(JobseekerAcademicRecord, JobseekerAcademicRecord.user_id ==
session["user_id"]).remove()
store.commit()
thanks
Gustavo Niemeyer wrote:
>> Hi Gustavo, you are right about the locks, the ere were many locks
>> beeing held. Is there some way I can handle this better? I´m doomed :-((
>>
>
> Yes, but it's entirely dependent on your application. In general, don't
> keep transactions open (IOW, don't do actions on the store and forget
> about it without commit/rollback).
>
>
More information about the storm
mailing list