First request too slow using Djapian+Django

12 views
Skip to first unread message

Juan Catalano

unread,
Nov 28, 2010, 4:50:03 PM11/28/10
to Djapian Users
I'm using Djapian 2.3.1 with Django 1.1.0 on my Ubuntu 10.04. Using
django's development server, the first request I do locally gets aprox
2 minutes to be completed, no matter which resource is asked for (not
necessarily a search). It's probably related to djapian index loading
because when I comment the load_indexes line, it works ok.

I don't need to use search in general (so I can use a conditional to
avoid loading the index in most cases) and I could also use a mock
index for some of my development tasks, but I wanted to ask you if
there is a better workaround for this situation. I don't really think
its a bug since its probably due to a large index being loaded each
time the server restarts and that sounds ok but it's really annoying
to wait that long during development, especially because development
server gets restarted every time an application's code is modified.

Thanks,

Juan

Krzysztof Dorosz

unread,
Jun 9, 2011, 8:46:54 AM6/9/11
to djapia...@googlegroups.com
It sounds to me like some low level HDD I/O issue. 
Reply all
Reply to author
Forward
0 new messages