Tuesday, September 8, 2015

Re: bulk add m2m relationship for multiple instances

I reviewed my code and the slow speed I was talking about was when I said |if a in myList].  I switched to the dict and I haven't noticed a performance hit from keeping a pointer to a list. 

I ended up switching to Postgres COPY for the importing.  It's a lot faster. 

Brian

 


--
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/8c809a31-a71d-46ac-8713-8d82c780bcfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment