Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:57:21+00:00 2026-06-09T19:57:21+00:00

I have a client app that constantly pings server with mysql_ping() . This is

  • 0

I have a client app that constantly pings server with mysql_ping(). This is happening in intervals of every 1-5 seconds, how costly would this be if plenty of users use the app?

The reason i am doing it is to avoid MySQL reconnection-delay and unless there is something going on between client and server every 1-5-10 seconds(not sure) then reconnection is required and it doesn’t help me at all.

edit: This is not web-app but local software so by client app(machine) i am talking about application users who need to constantly ping server

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:57:23+00:00Added an answer on June 9, 2026 at 7:57 pm

    If the clients are different physical machines, then ping may (and I stress the may) be a good idea.

    By avoiding the reconnection you certainly speed things up.

    The main drawback is the number of users – MySQL has a limit to users, and if each one of them is always connected you may hit that limit.

    If you don’t hit the limit I see no harm in it.

    As far as network usage a ping is quite minimal. Certainly if this is a local LAN (not over the internet) there is no harm there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client app that tries every 10 seconds to send a message
I have Android client app that communicates with server using Socket . On my
I have a client and a server app on Android (that uses ZeroC -
I have a client app that makes calls to a WCF service. This app
I have a client app that communicates to the spring server with REST type
I have a small client/server app that sends/receives UDP discovery packets. When a UDP
The scenario is that we have a client/server app with the client install being
I have a client Server app that uses .NET Remoting. I have a helper
I have a .NET client app that intermittently loses connection to a UNC share
Suppose I have a client side app that sends out requests to a rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.