The effect of frequent SDK recording

In my chat application, I am adding the ability to record chats. Logs are saved on the SD card, and one BufferedWriterremains open for each chat with the person / channel. I am wondering what consequences this may have on the SD card and its life.

My buffer BufferedWritersize is 1024, I am also wondering if it is too large or too large.

+3
source share
1 answer

Flash cards have a shutter speed of about a million recording cycles for each area and probably include wear leveling, which basically means trying to write on different areas, so specific spots do not wear out.

So, after about (sizeOfSDCard / sizeOfYourData) * 1,000,000 entries, you mess up your map.

In practice, this means that you probably will not do any harm.

+3
source

Source: https://habr.com/ru/post/1742356/


All Articles