Sen2Agri / Sen2Agri-System

Sentinel-2 for Agriculture (Sen2Agri) is a software system processing high resolution satellite images for agricultural purposes funded by ESA (European Space Agency). Please register on the Sen2Agri webpage for Sen2Agri system updates and information.
http://www.esa-sen2agri.org
Other
115 stars 38 forks source link

getProductTreeData uses too much memory #8

Open lnicola opened 7 years ago

lnicola commented 7 years ago

Right now, sp_get_dashboard_products returns the site footprint for each product in the result, even if it's the same for all products in a site.

This has caused memory usage issues in the past and requires us to edit php.ini to increase the memory limit. According to one user's report, setting it to 1 GB was not enough, so it's really bad and should be fixed.

The solution is to retrieve the site definitions separately and do the lookup on the client.

For anyone affected, a workaround is to update the site to a simpler footprint.