About project optimization

1. Reason

Since the project does not associate tables as much as possible to reduce the coupling between modules, many associations between modules need to call interfaces to transfer data, resulting in very slow queries

2. Optimization method

Simplify the interface. If it is only used to convert data, the interface should be as simple as possible.

Merge queries, say that multiple queries are merged into one, including interface calls and sql queries

Local cache, if you call other module interfaces cyclically, try to cache the last query result to reduce the number of queries

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325983234&siteId=291194637