Thanks Tom, that clears things up a lot and gives me something to work on.
-- Sorry for the noob question;
If you cannot update the database without first creating the model
instance - perhaps you need to call a method on the model instance in
order to get one of the values to update, for example - then you could
still speed it up slightly by reducing the number of queries to load
model data, by loading the model instances in bulk.
What do you mean by this?
By the nature of the data coming in it is pre validated, so I know already that row[0] is a valid id, row[1] is a valid foo value, row[2] is a valid baa value.
Thanks.
Robin.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADAnijZ1jdHOdTwzq0B45w3SAFC9Wqp2V0A_S4NcUNW5CU7YVA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment