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

Saving tracks (database integration) #3

Closed
ricardobalk opened this issue Sep 30, 2020 · 3 comments · Fixed by #7
Closed

Saving tracks (database integration) #3

ricardobalk opened this issue Sep 30, 2020 · 3 comments · Fixed by #7
Assignees
Labels
enhancement New feature or request hacktoberfest Good issue for Hacktoberfest participants
Milestone

Comments

@ricardobalk
Copy link
Collaborator

ricardobalk commented Sep 30, 2020

The current app only saves the last known location. There is no database that can save tracks.

@ricardobalk ricardobalk added the enhancement New feature or request label Sep 30, 2020
@ricardobalk ricardobalk added this to the 1.1.0 milestone Sep 30, 2020
@ricardobalk ricardobalk changed the title Saving tracks (database integration Saving tracks (database integration) Sep 30, 2020
@ricardobalk ricardobalk added the hacktoberfest Good issue for Hacktoberfest participants label Sep 30, 2020
@raydwaipayan
Copy link
Contributor

For saving previous locations, we have two options:

  1. A vector which stores all locations submitted so far in memory. (non persistent)
  2. Db engine like BoltDB to store the entries somewhere in storage. (persistent)

Which are you aiming at?

@ricardobalk
Copy link
Collaborator Author

ricardobalk commented Sep 30, 2020

I was aiming at option 2. A persistent database that could save tracks even between restarts of the app. Preferably with multi-user support, or at least ready for it (see #2)

  • Could be BoltDB, I've just been reading into it. Depending on your experience with it, you could give it a shot.
  • Something like sqlite might also work (and sqlite could be opened with sqlite viewer apps, as a nice addition)
  • MongoDB could be an option, but that's a bit heavy.

What's your opinion on this?

@raydwaipayan
Copy link
Contributor

raydwaipayan commented Sep 30, 2020

Maybe bolt or sqlite. Mongo is way heavy for the current purpose.

Considering there is very little relation between data,
(which are simply location entries), a nosql db might
be the to-go here.

So perhaps bolt will be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Good issue for Hacktoberfest participants
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants