I've got a model with a FileField which accepts a csv file.  In the
save method on the model there's some code which creates or deletes a
bunch of other objects based on data in the csv file.  This happens
post-save.

When I upload the csv file through the admin the subsequent object
creation is quite fast.
When I upload the csv through some UI of my own, the object creation
is much slower.

I've done everything that I can think of to fix this:

del request.FILES['csv_file']    (as there would be otherwise two
copies of the file in memory)

I set a trace in the save method, and nothing appears different
whether it's the admin calling save() or my view calling save().

What sloppiness am I overlooking?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to