Open yweidmann opened 6 years ago
The table mass_balance.elevation_distribution didn't had an index on the foreign key Adding the index INDEX "IXFK_elevation_distribution_mass_balance" ON mass_balance.elevation_distribution (fk_mass_balance ASC); increased the performance of 1/3. But still not enough.
Further analysis in the Python code and query planning on the database needed. Currently only 25 transaction per second during the query for the UnitTest.
During reading the data of mass-balance readings, all connected elevation-bands are read as well and added to the according mass-balance object. Some glaciers (e.g. Clariden) have a lot of mass-balance readings and elevation-bands.
The performance of the process has to be improved. Possible approaches: