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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:52:21+00:00 2026-06-13T10:52:21+00:00

I am developing an application which is required to keep a certain time t

  • 0

I am developing an application which is required to keep a certain time t of data in memory (configurable) and another time t2 worth of data in persistent storage on disk. The reason behind this is so that frequently asked data will be stored in memory and retrieved faster, whilst older, less often user data will be stored and retrievable on disk.

The problem is: I can’t simply write to memory and then copy the entire content of the memory buffer to disk after time t as if the application crashes, the most recent data stored in memory will be lost. So each time new data is received I need to store it simultaneously in memory and on disk.

My question is, is there an efficient way to mirror the buffer in memory to a portion of the disk? I am looking for a more efficient way than writing to memory and then to disk on each data update.

  • 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-13T10:52:22+00:00Added an answer on June 13, 2026 at 10:52 am

    You can memory map the file, both unix and windows system support this (but with different API). After that, you can simply write to that memory location, and do a sync when needed.

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

Sidebar

Related Questions

I'm developing a web application which is required to call a custom registered protocol
I am developing an application which requires real-time updates to the end user. However,
I am developing an application for schools in South Africa which is required to
Im developing a multi-threaded application in which different threads are required to update the
We are developing and web application which allows users to register for certain events.
I am developing an application which requires to add Calendar event. I have written
I'm developing an android application which requires background updates of my location . I
I am developing an Erlang application which requires a LOT of DB writes. My
I am currently developing an application which will require multiple different development languages. I
I am developing an application in Android 2.1 which requires loading of views dyamically

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.