Skip Menu |

This queue is for tickets about the Sphinx-Search CPAN distribution.

Report information
The Basics
Id: 45789
Status: resolved
Priority: 0/
Queue: Sphinx-Search

Owner: Nobody in particular
Requestors: perlover [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Please fix - big timeout in new method (Sphinx::Search)
Date: Thu, 7 May 2009 01:56:39 +0600
To: bug-Sphinx-Search [...]
From: Perlover <perlover [...]>
Download (untitled) / with headers
text/plain 928b
Hello! Thanks for nice module But there is bad moment Your 'new' method uses $Config{longsize} for default options %Config - tied hash, and first time execution of new method - 'require'-ing file by AUTOLOAD method I use apache with your module and noticed that sometimes i have 10-30 seconds delay for one query to Sphinx (many queries do 0.001 - 0.3 sec for example) Now i know there trouble. I used my logging for profile info and found that first time of running Sphinx::Search->new take a long time. Apache processes have a limited time of life and i have many delayed search request from users .... I suggest to you in module use like this: use IO::Socket::UNIX; use Encode qw/encode_utf8 decode_utf8/; $Config{longsize}; ... I think this will be work fine - "use Sphinx::Search" will preload %Config tied methods and first time execution of new method will be work quickly Alexey aka Perlover :)
Download (untitled) / with headers
text/plain 193b
Fixed in version 0.22. -- Jon Schutz My tech notes Chief Technology Officer YourAmigo

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to