Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle different Station Storages for different information #80

Open
5 tasks
eliemichel opened this issue Oct 1, 2015 · 0 comments
Open
5 tasks

Handle different Station Storages for different information #80

eliemichel opened this issue Oct 1, 2015 · 0 comments
Assignees

Comments

@eliemichel
Copy link
Member

For instance, the position and the name of a station won't change, so it can be saved locally, but the bikes and stands available change always and so have a different timeout.

This also means that the timeout should be different depending on the function.

And we should considere lazy loading focused on close stations. Nevertheless, we should also run some benchmark as it is faster to perform one big request than a lot of small ones.

Meanwhile, I disable local storage.

(Note that as for now, no update is made while the application remains open.)

Milestones:

  • Monitor and handle timeouts while the application is still running
  • Use different timeouts for availability and permanent information
  • Restore LocalStationStorage
  • Perform two ways loading: When the LocalStationStorage is ready, add markers with loading icon instead of availability counts and when AuthorityStationStorage is ready, update those availabilities.
  • Study the pros and cons of proximity loading only for the AuthorityStationStorage.
eliemichel added a commit that referenced this issue Oct 1, 2015
@eliemichel eliemichel self-assigned this Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant