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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:54:45+00:00 2026-06-18T15:54:45+00:00

I am using HTML and javascript as a front-end and java as a backend

  • 0

I am using HTML and javascript as a front-end and java as a backend and mysql for storing data. The database is updated every 24hrs and the results to be displayed is static as stored in mysql.

I don’t want to make any real time sql query as the number of queries is fixed. Instead I want to store the result from the database in some way so that it is accessible as a local variable to the javascript. I don’t want to make query because there are like 16 queries at present and can increase at times which needs to be done on load simultaneously to display the results of the complete page. This is going to consume memory, querying and processing the results will be slow as the number of users and queries increases.

So I was thinking of some local storage mechanism, which can be used to store the preprocessd data where from Javascript can directly access it without making any query. Is this possible and if so how? I want the data to last for atleast 24hrs before it is updated. Please help with any idea how to make it work

  • 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-18T15:54:47+00:00Added an answer on June 18, 2026 at 3:54 pm

    I stored the data after automatic query from mysql in json file which can then be included as a script tag in the html file. Thus all the results are available to the javascript as a local variable and no real time query is required to be executed at all.

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

Sidebar

Related Questions

I need to build my application GUI using HTML/CSS/JavaScript with a C++ backend all
The project I'm working on consists of front-end development - HTML, CSS, Javascript and
I have an application written with a basic HTML/CSS/Javascript front end, and sending AJAX
I want to access a MySQL database directly from JavaScript code in an HTML
I would like to move a circle along a circular path using HTML/CSS/JavaScript. Is
I'm starting my hand at creating a multi-player game using HTML 5 / Javascript.
I have a webapplication using only HTML and Javascript (no server interaction). At this
I'm building an application for iPhone(iOS 5) using Phonegap(Html + Javascript + Css), and
I am taking an XML feed and writing it to HTML using JavaScript. The
I am trying to create a dynamic bar in HTML using javascript. I have

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.