Hi Marc, Yes, the processing will block mongrel, but you should have more than one mongrel (either using Passenger, or straight apache load balancing). The bigger question is can your user wait 30 seconds for the response? There are ways to run the process on a separate thread, but I haven't had to do that yet.
Yes, libXML is *much* faster than REXML. We are in the process of changing our code, but the XML code is entwined so far through our app it is a big job. Cheers Simon On Sat, 20 Dec 2008 04:39:51 +0900, Marc <darklin...@gmail.com> wrote: > > Hi all > > Sorry if this seems silly, only been learning Ruby and Rails for 2 > weeks, though I have been programming since the Commodore 64 came out. > > I need to process an XML file once it is uploaded (currently using > paperclip). > The problem is that the files can be quite slow to process, up to 30 > seconds for some. Once this processing is done, I need to save that > data to the model to which the file is attached. > > So my question is, where is the best place to call the processing > function from? > Will the processing block mongrel? Should it go in a new thread? If > so, how do I do that? > And is there any speedier Library than REXML for processing XML? > > Thanks for your help > Marc > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---