Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash Data Storage (FDS): What is the point of "Files" and "Records"

I find the documentation completely opaque as to the meaning and intended application of what FDS calls  "Files" and "Records".

It seems that what FDS calls a "File" bears no relation at all to the concept of a file as a "container" - as found in other usages.

"Files" and "Records" just seem to be completely unrelated, unconnected, arbitrary identifiers - is that right?

In the SDK 15 FDS example, a complete config structure is stored as a single "Record".

What would be the pros & cons of storing the individual config elements as separate "Records" ?

Would it make any difference if they all had the same "File" ID or not ?

Related