You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Good design of the database indexes (foreign keys and primary keys of the elevation bands). This would be the best approach. Has to be tested first.
Lazy loading (only loading elevation bands if needed)
Additional parameter (telling the DataReader if elevation-bands have to be read as well)
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: