Jump to content

Recommended Posts

I'm making a program that is going to be communicating with mysql a lot.  For all of it's directions actually.  It's going to constantly run select queries to check for pending commands and constantly run insert queries to write other data to other tables.  There will be lots of these running at once.  So lets say 100 people are using it at the time and they average 10 queries a second.  How do I lower my bandwidth usage?  Should I keep an open connection for each user?  Is there a way to keep a query open so it doesn't need to execute every time but basically post changes?

 

Just looking for any suggestions on lowering my usage.  If you don't think that many queries is a problem that's fine with me, I'd like to hear that too  ;)

Link to comment
https://forums.phpfreaks.com/topic/182869-lots-of-queries-optimization-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.