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

  • Home
  • SEARCH
  • 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 8668139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:08:25+00:00 2026-06-12T18:08:25+00:00

When there is a web app will query some information frequently, how to improve

  • 0

When there is a web app will query some information frequently, how to improve the performance by cache the query result?
(The information is like top news in a website and my database is SQL Server 2008, the application is on tomcat.)

  • 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-12T18:08:26+00:00Added an answer on June 12, 2026 at 6:08 pm

    I can suggest the following:

    1. In your database you can use idex views, please check: How to mimick Oracle Materialized Views on MS SQL Server?.
    2. If you has used JPA or Hibernate it can cache Entities (objects).
      • http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html#performance-cache
      • http://en.wikibooks.org/wiki/Java_Persistence/Caching
    3. If you’re looking for a cache system that is foreign to database and ORM, maybe you can review MemCache or EHCache.
      • http://memcached.org/
      • http://ehcache.org/
    4. An option but not recommended is that you manage a cache in your application, by example you can store at ServletContext (also know as ApplicationContext) the list of Countries, but you need to implement the business logic for cache (update, delete and insert objects), also you need to be careful with the Heap Memory.

    You can use a combination of the above strategies it depends of the context of your business

    Best regards,

    Ernesto.

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

Sidebar

Related Questions

I am building a rails3 web app. Is there a query like this in
There is a ASP.NET MVC 2 web app, lets call it myapp.com. I want
There are two projects: 1) applet project that outputs jar file 2) web app
I am creating a simple web app. There is a <video> element on the
I'm making a web app. In it there are times when a form may
We're using a Ruby web-app with Redis server for caching. Is there a point
Do you know if there is any way to publish on my web app
I have a large web app, and I think there are a bunch of
If I run my web app in VisualStudio, and set cookies, they aren't there
I'm using QWebView to run a web app. There are 650+ files. Placing 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.