mamcxyz wrote: > > The thing I'm not sure is about thread safety. I'm confident in the > Lucene stuuf (in fact I'm working in a port of Lucene to Delphi) but > not know in the context of django what to do. > > The rule is only have a GLOBAL writer object, and I can do concurrent > reading operations on the index. > > So, how do it the rigth way (tm) ? >
i think it depends on how your server-layout... are you using mod_python + apache2? fastcgi? scgi? for example, i'm using fastcgi + forking flup, so i have many django processes, but all of them are single-threaded. so in my case, the GLOBAL writer object thing does not really work :-( theoretically you could use a multithreaded layout, either by using a multithreaded apache worker configuration, or by using a non-forking fastcgi layout. but please note, that python is not that fine with multiple processes (GIL).... what about creating a (multithreaded) indexing/searching server in python, and query it from your django app using http? gabor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

