It is recommended to centralize the operations of the database in the services layer, and control the operations of each table in a single service class #3531
mingshengke
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is recommended that all operations of the database be centralized in the services layer, and the operations of each table should be controlled within a single service class. Multiple service classes should not be used to operate on the same table. The purpose is: when caching a table, it only needs to be processed in one place to avoid missing updates to the cache.
Beta Was this translation helpful? Give feedback.
All reactions