6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12656] Horde pings SQL server with each database query
*
Your Email Address
*
Spam protection
Enter the letters below:
__ ._..__ .__ .__. / ` | [__)[__)| | \__._|_[__)[__)|__\
Comment
> While monitoring my MySQL server stats, I noticed that half of the > queries performed are 'SELECT 1' (ping) requests. While it may be a > good idea to ping the SQL server if we haven't heard from it for a > while, sending 150 pings in quick succession every > $conf[activesync][ping][waitinterval] for each ActiveSync connection > is may be a overkill. > > Not that I'm worried about the SQL server load (the load for a > 'SELECT 1' is probably negliable compared to the 'real' queries doing > the actual work), but sending a ping for each SQL query effectively > doubles the round trip delay to the server. While this may not be > much of an issue if the webserver and database are on the same > (physical) machine, it may add up if they are not. > > Idealy, a timestamp should be stored with the connection so that a > ping is only sent if the last time we heard from the server on this > connection was more than 'X' seconds ago (with X probably a hardcoded > value of maybe 10 to 30 seconds). I can see if I can come up with a > patch to do this, but my PHP skills are mediocre at best, so please > bear with me.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers