Whoosh RamStorage backend

30 views
Skip to first unread message

Kegan Gan

unread,
Nov 29, 2009, 10:59:42 AM11/29/09
to django-haystack
Is django-haystack going to provide selection of backend for Whoosh?
In particular the RamStorage backend.

I think this is extremely important for running unit tests in a Django
project.

Currently, I am working around the my unit tests to temporary create a
directory for storing Whoosh index files. And later deleting it after
the tests are completed.

Any best practices for this?

Thanks.

Daniel Lindsley

unread,
Dec 1, 2009, 1:09:22 AM12/1/09
to django-...@googlegroups.com
Kegan,


I don't disagree on that this ought to be available (likely via a
setting) though the default should remain the ``FileStorage`` backend.
The ``RamStorage`` backend is much faster, but I fear people
(especially new users) losing their data by accidentally using it.
Created an issue #144 for this.


Daniel
> --
>
> You received this message because you are subscribed to the Google Groups "django-haystack" group.
> To post to this group, send email to django-...@googlegroups.com.
> To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.
>
>
>

Kegan Gan

unread,
Dec 1, 2009, 9:27:51 AM12/1/09
to django-haystack
Yes the default definitely should be FileStorage :)

So, how do I file a ticket for supporting RamStorage?

Daniel Lindsley

unread,
Dec 1, 2009, 10:13:31 AM12/1/09
to django-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages