Traewelling / traewelling

Free check-in service to log your public transit journeys
https://traewelling.de
GNU Affero General Public License v3.0
231 stars 46 forks source link

Some Dashboard Requests Load Very Long #961

Closed bendix-dev closed 2 years ago

bendix-dev commented 2 years ago

Some /dashboard/ pages in API v1 load very long (around 5 seconds for me) and some load very quick (max 500 ms). My suspicion: looks like the pages that took so long to load have statuses with events while the ones that load quick do not.

https://traewelling.de/api/v1/dashboard

HerrLevin commented 2 years ago

once #971 is merged & deployed, the fields trainDistance and trainDurationwill be moved to the endpoint v1/event/{slug}/details. To reduce breaking changes, these fields will be set to 0 for now in every model that uses the regular event model (this includes statuses).

MrKrisKrisu commented 2 years ago

/cc @jheubuch

jheubuch commented 2 years ago

Fine by me, not implemented yet in my client