Network request time-out mechanism set, found that if the setting of 3S is too short, causing some services can not successfully request to the data, each time the reported time-out. Problem solving
1. Adjust the timeout period
2. Optimize query MySQL
Http://blog.chinaunix.net/uid-25063573-id-3032578.html
1, creating an index
Indexing is especially important for queries that are the primary application. A lot of times the performance problem is simply because we forgot to add an index, or we didn't add a more efficient index. If you do not add
Index, then find any even a particular piece of data will be a full table scan, if a table of large amounts of data and meet the results of the condition is very small, then not indexed can cause fatal performance
Drop. However, it is not always possible to index, for example, gender may be only two values, index not only have no advantage, but also affect the speed of the update, which is called over-index.
Apps may need to be optimized for slow performance