CodePudding user response:
Code:1, the real-time performance is not high consider joining the cache
Database:
1, first add index, to check the database table index usage, the commonly used data can give priority to add index see execution speed
2, if after add the index or slow, can consider to master-slave replication, reading and writing separation,
2, the above is still outweighs depots table
CodePudding user response:
With what database, specific bottleneck on what action, if have index, how to use the index, the write operation is frequent, whether the large time span data are often high real-time statistics?CodePudding user response:
CodePudding user response:
May encounter the same question markCodePudding user response:
Points history library and the librarySuch as jd, query the order column only 3 months, this in the current library, library history in history, the query frequency much lower
CodePudding user response: