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
As mentioned in this issue, the AssetSelect component experiences significant delays during loading. This occurs because the sepal_ui.scripts.gee.get_assets function recursively calls the Earth Engine API for each folder at every level. The more folders present, the longer the loading time becomes.
To improve performance, we should implement asynchronous calls to the Earth Engine API to fetch assets more efficiently.
in #934 I have proposed an asynchronous solution for this problem, however, due to the synchronous naturalness of the earthengine-api there's no way to do fully asynchronous calls in one single thread, that's why there I dispatch threads, which is okaish but not ideal...
After that we could just do the requests in the way of earth_engine_api.projects.assets.listAssets(parent=parent)
Last thing to check is the authentication, aiogoogle uses user_creds and client_creds to start the session, and I would like to get them in a transparent way from ee.Initialize(), (if there's a way)
As mentioned in this issue, the
AssetSelect
component experiences significant delays during loading. This occurs because thesepal_ui.scripts.gee.get_assets
function recursively calls the Earth Engine API for each folder at every level. The more folders present, the longer the loading time becomes.To improve performance, we should implement asynchronous calls to the Earth Engine API to fetch assets more efficiently.
this will also help to improve #870
The text was updated successfully, but these errors were encountered: