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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:34:49+00:00 2026-05-26T13:34:49+00:00

In a section from my web application i get information from http://www.geonames.org/ ( web

  • 0

In a section from my web application i get information from http://www.geonames.org/ ( web service method ) and http://data.un.org/ ( xml files stored on our application )

I’m new at this and my questions are:

  1. When to cache the information from geonames ?
  2. What method to use for the cache ?
  3. It will be ok if i cache the xml files or is the same performance ?

I use ASP.NET MVC 2 C#

  • 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-26T13:34:49+00:00Added an answer on May 26, 2026 at 1:34 pm

    Caching is a way to improve performance, consider it, only if the current performance is not acceptable, otherwise there is no need to worry.

    One way you could cache your data is set up a database table with a CLOB field, a date time of when it was stored and of course fields to identify the object (such as the webservice parameters used to obtain this object).

    You’ve to decide a policy to expire the old objects, for instance you could set up a query to run daily that would delete all objects older than a week. This is an example, I can’t tell you for how long to cache, it depends on the size of the data you can keep and on how often it gets updated.

    To get to your questions in more detail:

    .1. When to cache the information from geonames ?

    I’m not sure if I understand correctly, but normally: you’d look up the value in the cache, if it’s found you return from the cache, if it’s not found you do the service call and you store the result in the cache.

    .2. What method to use for the cache ?

    I’ve explained a way with SQL tables, you could also use files, but it’s more complicated.

    .3. It will be ok if i cache the xml files or is the same performance ?

    Whatever you decide to cache, processed or unprocessed (XML) information, it won’t change much from a performance point of view, since the biggest delay is fetching the information from the network, not processing it.

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

Sidebar

Related Questions

I have a web application with a custom configuration section. That section contains information
In particular from this web.config: <configuration> <configSections> <section name=RStrace type=Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics /> </configSections> <system.diagnostics> <switches>
I refactored a slow section of an application we inherited from another company to
The section Last links in the chain: Stashing and the reflog in http://ftp.newartisans.com/pub/git.from.bottom.up.pdf recommends
I'm deveoping web scraping scoftware that relies on XPath to extract information from web
I am developing a Java web application that bases it behavior through large XML
I've been having loads of problems trying to get a Spring/Hibernate web application to
I have a Web Application that I received from another developer, when I first
really simple question -> i can't seem to get any data from Log4Net in
I have downloaded the example code/demo from: http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html and when I try to run

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.