In orms, we can easily perform our desired operations in the save() method (for example, when a record is added in the likes table, the count column in the post table will increase.)
This is great, but
it prohibits direct manipulation of the database!
No one has the right to execute a raw query (insert or update) on this table
if this database is used by different clients with different programming languages, they should all use orm and implement the same logic in save(changed several codes for one change)
Why does the database not perform this operation?
Even if these operations are not related to the database (for example, connecting to Kafka), the database is still able to do it.
I never worry that if I execute raw query on db, the data will be corrupted