troubleshooting Question

Instant Search using AJAX (PHP + MySQL at backend) causing problem

Avatar of practitioner
practitionerFlag for Singapore asked on
PHPMySQL ServerAJAX
12 Comments1 Solution639 ViewsLast Modified:
Hi,
I've an instant search box on my website that presents options to the user on keyup, it uses AJAX and fetches matching results on keyup. Similar to the search box on amazon.com

It is very common these days but my problem is that I had to set  max_user_connections to 200 in my.cnf because mysql user was reaching the connection limit due to traffic. The script opens and closes the database connection properly, but we are expecting more traffic and this too will fail, I believe, this is not the right way to implement instant search but not sure what is that other efficient method?

Looking for experts advice on this.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros