The invention discloses a
database optimized storage method based on the industrial control field. The method comprises the following steps of: S1, reading return path data, storing the return path data related to the
automatic control rate into a real-time return path
automatic control rate acquisition table, and storing the return path data related to the stability rate into a real-time return
path stability rate acquisition table; taking the return path data with same space attribute as the
tree node data, obtaining and storing the real-time
automatic control rate and the stability rate of the
tree node according to the return path data in the acquisition tables; S2, while reading the next round of return path data, executing the step S1, and simultaneously executing a step S3; and S3, storing a time stamp in a historical return path acquisition table before storing the current return path data; determining a statistic cycle, accumulating the length of the time stamp, storing the return path data in the historical return path acquisition table into each table corresponding to the statistic cycle, and then, obtaining the historical automatic control rate and the stability rate of the
tree node. The invention further discloses a corresponding
database optimized query method. With the method provided by the invention, the
data query efficiency in a local
database with a huge data volume can be improved.