Forum: Ruby on Rails slow Net::HTTP within rails?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Morus W. (Guest)
on 2006-02-13 14:41
(Received via mailing list)

for search integration with a lucene search server I'm using an http
This request takes ~ 300 ms (just for the ``resp =,
query)'' call, where http is some Net::HTTP instance) while the same
http request (same url, same query) in a test program outside rails
takes just ~
60 ms.
I managed to reduce the time within rails by using ruby-curl, but I'd
like to
understand why the Net::HTTP call is so slow.
Any comments?

This topic is locked and can not be replied to.