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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:51:15+00:00 2026-06-12T09:51:15+00:00

I have a persistent dictionary (string -> string map) that I write to a

  • 0

I have a persistent dictionary (string -> string map) that I write to a NAND filesystem as a log file. My binary format is:

1 byte - key size
<key size> bytes - key without the terminating nul-character
2 bytes - value size and flags
<value size> bytes - value without terminating nul-character

Usually, I write between 20 to 100 bytes with each change in the dictionary. But since this is been persisted on NAND this design causes a new page to be allocated each time, reducing my available NAND space by 2k on each iteration.

I can’t cache the writes because I can’t lose this data. It’s running point of sales terminals, saving transaction data. My algorithm effectively writes and call flush, so this doesn’t happen.

Now, is there a de-facto or standard algorithm to solve this problem? I’ve looked at power-down triggers on the target platform, but the SDK suggests using the NAND as the persistent layer.

  • 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-12T09:51:16+00:00Added an answer on June 12, 2026 at 9:51 am

    Since the NAND FLASH is limited to page-granularity on writes, I’m out of luck.
    I could rely on some external persistent device, or on-shutdown routines, but I don’t have access to any other secondary memory and old point of sale terminals even have capacitors for last resort routines, but they aren’t reliable enough for transaction data.

    I’ll have to live with the FLASH limitation.

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

Sidebar

Related Questions

I have persistent object, with a string property that often is over 500 charachters.
I have a persistent class Author with two fields: int id , String name
I have two persistent stores with objects that use the same model. I would
I have a persistent entity that I'm using as a template: Company Locations Departments
I have a persistent problem with textboxes in WPF, using .NET 3.5. With a
As far as I know, memcached runs in-memory and does not have a persistent
I have had a persistent problem with Visual Studio 2010 and any framework version
Why do i have to use some persistent-login module to make my users login
I have an application which stores data to the persistent store by setting the
I have developed a blackberry app, in which I am using Persistent Storage to

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.