tilde-lab / optimade.science

A "sky-scanner" Optimade browser-only GUI
https://optimade.science/
MIT License
8 stars 3 forks source link

Bottleneck in showing the search results #30

Closed blokhin closed 3 years ago

blokhin commented 3 years ago

It seems there's a bottleneck in showing the search results, by the slowest provider. Until it returns the results, no other much faster providers' results are shown. This is strange, since the Optimade client per se is asynchronous.

PaulMaly commented 3 years ago

It's not really strange, because asynchronous is not Optimade client, but http requests to optimade APIs. As a consumer of Optimade client, we want to get a full list of providers/structures from the whole hierarchy of APIs. One of the reasons for that is because Optimade client shouldn't try to assume which type of consumer use it. Some types of consumers just may not support some progressive form of data recieving. In addition, such a task will require the implementation of some kind of reactivity, e.g. observables to ship the data partially when it's ready.

blokhin commented 3 years ago

Done as soon as https://github.com/tilde-lab/optimade.science/pull/33 is approved.