cjroth / lifetracker

An open source, hackable tool for discovering your quantified self data.
http://cjroth.github.io/lifetracker/
9 stars 0 forks source link

experimental: use plain javascript objects instead of nedb #52

Closed cjroth closed 10 years ago

cjroth commented 10 years ago

we could just save to and from csv or json files instead of using nedb.

also instead of using $rootScope.variables we should use dependency injection and then call some sort of method. perhaps we could model it after the settings.json:

variables.reload() or something.

and we can just use the index to refer to variables instead of their ids

cjroth commented 10 years ago

on second thought... let's not do this because nedb handles disk writes very well (aka minimizing seeks). overwriting an entire json file does not scale.