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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:54:40+00:00 2026-05-15T18:54:40+00:00

Consider the following data model: Suppose I have a table called SuperAwesomeData where each

  • 0

Consider the following data model:

Suppose I have a table called “SuperAwesomeData” where each record maps to an instance of an object called “SuperAwesomeData” which is retrieved by using the primary key for table “SuperAwesomeData”. My question is what caching strategy would best work for managing individual records? I need to still be able to request the “SuperAwesomeData” record via it’s primary key.

  • 1 1 Answer
  • 3 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-15T18:54:40+00:00Added an answer on May 15, 2026 at 6:54 pm

    Well, give SQL enough memory and you’ll likely find its caching stuff for you anyway. Other than that, a basic caching idea will work for you – create a caching entity for your table (or business object, preferably) and simply use something like a dictionary to provide key-value associations.

    Then all you need to do is work in some cache invalidation or lifespan and you’re sorted. The caching layer usually hovers around the business layer, as the business logic can decide if what’s in memory is suitable for you, or stale.

    Don’t re-invent anything, there are lots of caching solutions around that provide caching infrastructure: ASP.NET Cache, memcached, AppFabric…

    Caching is a little gem when it comes to improving performance, because all it consumes is memory – which is turning into penny-a-dozen. However, like anything performance related, don’t assume you need it until you need it – ie, database accesses are slow, the network is slow, you have millions of users accessing the same data, etc

    Profile your code first!

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

Sidebar

Related Questions

For my question lets consider the following sample table data: ProductID    ProductName    Price   Category 1                Apple                 5.00       Fruits
Consider this scenario: I've an XML file called person.xml with the following data in
Consider the following table. It has 3 filed with the following data. Now I
Consider the following scenario: You have an account model You have an external service
Consider the following data structure: List<Person> People; class Person { List<Car> Cars; List<Hobby> Hobbies;
Consider the following two FFI structs: class A < FFI::Struct layout :data, :int end
Consider the following: package MyApp::CGI; use Moose; use MooseX::NonMoose; use Data::Dumper; extends 'CGI::Application'; BEGIN
Consider following scenario: I have RESTful URL /articles that returns list of articles user
Consider a database(MSSQL 2005) that consists of 100+ tables which have primary keys defined
Consider a nonlinear least squares model in R, for example of the following form):

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.