What is data persistence?

Asked

Viewed 6,254 times

10

What would that term be? I always see around and can’t decipher!

2 answers

15


According to the wikipedia article:

It is characteristic of a state that survives the process that created it. Without this ability, the state would exist only in RAM, and would be lost when RAM stopped (turning off the computer, for example).

It’s just a beautiful name to say that you have written the data somewhere and it will not be lost when the computer is turned off (HDD, SSD, or even in the cloud, for example). It’s just a way of saying that the dice will be available "forever" without saying how.

It is usually connected to database, but of course it does not need to be in one, any kind of application that records anything so that that state can be recovered later is making persistence. It is not something connected to SQL, but it is clear that SQL does elements, especially in INSERT, UPDATE and DELETE.

  • It is a paradox to say that DELETE does data persistence, ( rsrs ) but this right, indeed, does. Make the persistence of my wish that this data be excluded.

  • 1

    That’s right, persistence is about the state and not about the data itself. To say that the data no longer exists is a change of state that needs to be persisted. Even because it is not only delete, it records traces that this was done (at least in database usually occur, but even if it did not occur, still worth).

  • Very good, thank you for your time! Now I understand this paradigm hehe! Thank you!

9

Data in memory gets lost as soon as the program finishes.

For this data not to be lost it is necessary that they are written in a physical device.

Therefore: data persistence in computing refers to non-volatile data storage, for example, storage on a physical device such as a hard disk.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.