On Fri, Sep 24, 2010 at 4:51 AM, Peter Bengtsson <pete...@gmail.com> wrote: > When not using SQLite for running my tests it takes a aweful long time > to install all the indexes. > Considering that indexes are there for speeding up selects when the > number of rows is very high I realise I don't need them during a test > run. > > Is there a way to disable index creation during the syncdb?
Not easily. You could write a custom database backend that overrides the index creation SQL calls, but that's a bit heavyweight for what you're looking to do. However, it is an interesting area for optimization for the test suite. It's entirely possible that the overhead of constructing and maintaining the indicies is much higher than the benefit gained by having them; it's worth looking into whether dropping index creation can speed up the test suite. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.