Be it matrix simply writing a HashMap into a file as "database" replacement https://github.com/matrix-org/matrix-android-sdk/blob/master...
Or Signal simply taking apart Android system structs with JNI, to get a file descriptor’s owner https://github.com/signalapp/Signal-Android/blob/master/jni/...
There’s lots of suboptimal code in messaging apps. All of them.
The existing database implementations in the system do much less writes.
Doing such large, constant writes not only is slower, it also degrades the NAND.