3 ms·
If you are thinking of SQL injection when you say "security", yes you need to sanitize the input before querying the database. But that is different than valida
by billythemaniam 4y ago
If you are thinking of SQL injection when you say "security", yes you need to sanitize the input before querying the database. But that is different than validating the sanitized data is correct. The database is generally a better place to do that. If worrying about scalability is a legitimate concern and not a premature optimization, then look at one of the distributed SQL databases (Spanner, TiDB, CockroachDB, Yugabyte) which are getting pretty good.