Tuesday, November 27, 2012

Re: Speeding up test database creation

On Tue, 27 Nov 2012 13:43:37 -0800 (PST), John Maxwell
<notifyjohn@gmail.com> declaimed the following in
gmane.comp.python.django.user:

> Hm, I tried commenting out the line
>
> 'NAME': '/home/john/database.sqlite',
>
> and it still seems to be just as slow, if not slower...
>
> On Monday, November 26, 2012 5:56:30 AM UTC-8, Andres Reyes Monge wrote:
> >
> > The tutorial uses a sqlite file database not a in memory database, try
> > omitting the name parameter and it should speed things up

I suspect the best version would be to change the NAME into the
specific string SQLite3 uses for memory -- ":memory:" (though using ""
supposedly does the same, and may be what the previous respondent meant)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment