systemed/potlatch3

Time taken to display "My Tracks"

SomeoneElseOSM opened this issue · 6 comments

Currently the first time that "GPS/ My Tracks" is used in a session it takes 17 seconds to load. I'm guessing that it might be loading everything historically (going back to 2008 for me)? Would some sort of paged mode or user preference for start date (defaulting to the beginning of time) be an option?

I suspect I upload rather more GPS traces than most people, so this might be less of an issue elsewhere.

If you go to https://www.openstreetmap.org/api/0.6/user/gpx_files, does it take a similar amount of time?

Ultimately then I guess this is an openstreetmap-website issue. As best I know, the /api/0.6/user/gpx_files call doesn't support pagination.

Ah - fair enough (assuming that the display of GPS traces in P3 has to be synchronous)

In theory I guess we could keep the GPS trace list in local storage, show the cached list straightaway, and only refresh when the gpx_files call returns. But you're probably right that not many P3 users have 5000+ traces ;)

Ultimately then I guess this is an openstreetmap-website issue.

Right, that's why I've opened an issue there now.