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 482589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:06:42+00:00 2026-05-13T01:06:42+00:00

In my webpage, I need to display the some information which will be updating

  • 0

In my webpage, I need to display the some information which will be updating frequently. For that I am using ajax calls, and showing it in the page using innerHTML. Im making the ajax request on each 3 seconds.. And in the php page (ajax request handler), Im opening the mysql connection using mysql_connect and at the end of the script Im closing the connection using mysql_close. But the server is getting slow because of the repeated calls. Is there any alternate solution ? Or how can I improve the performance of this ?

  • 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-05-13T01:06:42+00:00Added an answer on May 13, 2026 at 1:06 am
    • Make the query every 6 seconds?
    • Make sure you’re only returning -changed- data, and apply a diff instead of returning the whole set
    • Cache as best as you can, rather than hitting the DB every time, if possible. For instance, if the data updates frequently, but is the same for everyone, you could have it only query every 5 seconds, and have the update read the cached values (write data to disk, or whatever works in your setup)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to display additional information on a web page (PHP) if one of
I need to create a webpage that will generate demo similar to https://django-cms.org/en/demo/ .
I'm writing a webpage and I need to display a div with some content
I'm using Rails and jqPlot to display some data on a webpage. The graph
I need to display a formatted number on a web page using JavaScript. I
In a current project i need to display PDFs in a webpage. Right now
In my webpage I need to put a horizontal colored strip of some width
I Need to make a webpage. asp.net this webpage recieve parameter by using Request.Querystring
I need to add a doctype to my html webpage because IE will only
I need help reading the contents of a webpage. Currently i am using the

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.