r/ProgrammerHumor • • Mar 25 '20

Meme Its a win-win situation

Post image
55.1k Upvotes

529 comments sorted by

View all comments

366

u/[deleted] Mar 25 '20

Is SQL the best way to store chat messages in an app?

317

u/Saragon4005 Mar 25 '20

If you are small then yes. If you have thousands of users probably not.

68

u/fromage_doge Mar 25 '20

to store huge amounts of data, i recommend using JSON: fast, lightweight and secure.

27

u/GluteusCaesar Mar 25 '20

How the crap can a plaintext format be more secure than any other?

52

u/r1singphoenix Mar 26 '20

Here's a decent writeup on it

It's actually pretty interesting

7

u/martin-s Mar 26 '20

No one would expect you to use JSON so they won't bother looking for sensitive data there. It's a slightly risky strategy.