I know that in normal cases is faster to read/write from a file, but if I created a chat system:
Would it be faster to write and read from a file or to insert/select data in a db and cahe results?
I know that in normal cases is faster to read/write from a file, but
Share
Database is faster. AND importantly for you, deals with concurrent access.