Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Cache Expiration Problem in ASP .Net

Cache Expiration Problem in ASP .Net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpdatabasesysadminhardware
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prem kumar 0
    wrote on last edited by
    #1

    I want to cache sql view having more than 1 lakh records with more than 600 columns. At present i am caching the entire records in a single cache but it occupies nearly 0.5GB memory of my RAM. But the problem am facing is that i could not maintain the cache in the server for a period where i have set a absolute expiration of 10 hours, But the cache doesn't maintaini in the server for the mentioned expiration time. I have seen one article which says the size limitation of a cache must be between 2-3GB. Please suggest me * What are the limitations in caching where in a huge data handling project? *How can i play around with Caches in terms of dependencies both hardware and software? *What are the measurement criteria that needs to be taken care in Cache sizes and expiration policies? *On a given day we update the cache atleast thrice. so i need to recache it for certain interval of time. what are the advisables i need to take care of? Thanks in advance :)

    A P 2 Replies Last reply
    0
    • P prem kumar 0

      I want to cache sql view having more than 1 lakh records with more than 600 columns. At present i am caching the entire records in a single cache but it occupies nearly 0.5GB memory of my RAM. But the problem am facing is that i could not maintain the cache in the server for a period where i have set a absolute expiration of 10 hours, But the cache doesn't maintaini in the server for the mentioned expiration time. I have seen one article which says the size limitation of a cache must be between 2-3GB. Please suggest me * What are the limitations in caching where in a huge data handling project? *How can i play around with Caches in terms of dependencies both hardware and software? *What are the measurement criteria that needs to be taken care in Cache sizes and expiration policies? *On a given day we update the cache atleast thrice. so i need to recache it for certain interval of time. what are the advisables i need to take care of? Thanks in advance :)

      A Offline
      A Offline
      AlexeiXX3
      wrote on last edited by
      #2

      Please sign up with another user so yo can ask the same question again

      Alexei Rodriguez

      1 Reply Last reply
      0
      • P prem kumar 0

        I want to cache sql view having more than 1 lakh records with more than 600 columns. At present i am caching the entire records in a single cache but it occupies nearly 0.5GB memory of my RAM. But the problem am facing is that i could not maintain the cache in the server for a period where i have set a absolute expiration of 10 hours, But the cache doesn't maintaini in the server for the mentioned expiration time. I have seen one article which says the size limitation of a cache must be between 2-3GB. Please suggest me * What are the limitations in caching where in a huge data handling project? *How can i play around with Caches in terms of dependencies both hardware and software? *What are the measurement criteria that needs to be taken care in Cache sizes and expiration policies? *On a given day we update the cache atleast thrice. so i need to recache it for certain interval of time. what are the advisables i need to take care of? Thanks in advance :)

        P Offline
        P Offline
        Paulo Zemek
        wrote on last edited by
        #3

        I think you may want to look at my article: Pfz.Caching - ViewIds instead of ViewStates[^] With it, instead of using Cache you could use Session or ViewState. It will try to use the object that is still in memory but, it that's not possible, it will reload the file (so you will probably don't get out-of-memory exceptions). Also, recently used files are "kept alive", so the information can be kept alive forever if it is used frequently. But, I must say you should really consider changing the way you are working with your data... keeping 500mb of data in memory is too much.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups