On Oct 19, 2007, at 12:34 AM, Jeremy Dunck wrote: > Django's docs, at one point, set the bar for open source documentation > projects. Now it is, IMHO, merely better than average. No offense > intended to anyone. :)
From what I've seen I'd agree. >> While Django is excellent >> for rapidly prototyping the new types of objects we need to hold the >> data, it is also a pretty slow way to put the data in, because every >> save is its own transaction. > > You may have unwittingly helped my point. :) > > You can control your transactions. This thingie here isn't just > for views: > http://www.djangoproject.com/documentation/transactions/#django-db- > transaction-commit-manually > Ah, thank you for pointing that out. I've seen the transaction documentation before (so I knew that it existed) but didn't think I had time to test it out yet. I didn't realize all I needed to do was add a decorator ;). Of course, you may have actually unwittingly proved my point as well! I so trust the Django documentation to be thorough that I know when I am ready to use such things they would be there. On the other hand, what I was really trying to say is that it would have been useful earlier on to have understood that thats what transactions were so I would know what to look for later on. Anyone who has worked with databases before Django would certainly recognize this, but most of what I know now has been through using Django (again I'm not saying that the Django docs should do the work of the database docs, only suggesting what direction perfection may lie). > To be fair, there are at least two other things that slow Django model > saves down when compared to raw DB API cursor executes ... Also, most people realize that referencing other tables slows down the database, but I personally didn't realize how much. For me, flattening out models saved me over 8x as much time in some cases (which is significant when its over 2 hours compared to 15 minutes). Again, this is mostly a database issue, so perhaps somewhat off topic. > What, like Vietnam? > http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer > +Science.aspx Yes, that's exactly what I meant. I look forward to seeing how much better it can get! jared --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---