GenSpectrum / LAPIS

An API, a query engine, and a database schema for genomic sequences; currently with a focus on SARS-CoV-2
https://lapis-three.vercel.app
GNU Affero General Public License v3.0
22 stars 6 forks source link

Request a specific data version #645

Open chaoran-chen opened 8 months ago

chaoran-chen commented 8 months ago

In LAPIS 1, it is possible to request data for a particular data version. If the requested data version is not the one that is available, a 410 response is returned. Example: https://lapis.cov-spectrum.org/open/v1/sample/aggregated?dataVersion=1707677242

It would be nice to add it to LAPIS 2 as well but it's not urgent (can wait until we finish the migration).

corneliusroemer commented 6 months ago

Bump as this would help a lot in saving data transfer and improve load speed for reloads of previously visited pages. A single page can be 5-10MB in resources so it adds up. If one has only a 10Mbps connection, which is not uncommon globally, It takes 100 seconds to reload a page.