42minutes / go-42minutes

Manage your TV series - Scan existing, find and download new and missing episodes.
7 stars 2 forks source link

Add file-based library persistence #19

Closed geoah closed 8 years ago

geoah commented 8 years ago

Currently we have user library using rethinkdb which is a bit limiting as it requires users to have rethink installed or user docker.

We could really use some form of file-based nosql library that will allow the users to not have to install any external dbs. eg, tiedot

alexmreis commented 8 years ago

SQLite?

geoah commented 8 years ago

Hm. I was about to say that the main issue of using SQLite is the structure and query complexity. But...

We only need persistence for the user library for which we don't actually store the whole structure any more.

@alexmreis I think you are on to something.

Tables

Shows

Seasons

Episodes

Files

Queries

Some functionality of the user library might require additional queries but that should be an issue as scaling in a single-user client isn't really a concern.

@superdecimal should we switch to a relational db maybe?

superdecimal commented 8 years ago

@geoah What would be the advantages besides me not being able to find a decent embeddable nosql db?

geoah commented 8 years ago

@superdecimal apparently there is no such thing in golang.