{"action":"created","issue":{"url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/2","labels_url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/2/comments","events_url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/2/events","html_url":"https://github.com/jason-edwards/price-visualiser/issues/2","id":80829610,"number":2,"title":"Update to database only if value has changed","user":{"login":"shalvin","id":2045520,"avatar_url":"https://avatars.githubusercontent.com/u/2045520?v=3","gravatar_id":"","url":"https://api.github.com/users/shalvin","html_url":"https://github.com/shalvin","followers_url":"https://api.github.com/users/shalvin/followers","following_url":"https://api.github.com/users/shalvin/following{/other_user}","gists_url":"https://api.github.com/users/shalvin/gists{/gist_id}","starred_url":"https://api.github.com/users/shalvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shalvin/subscriptions","organizations_url":"https://api.github.com/users/shalvin/orgs","repos_url":"https://api.github.com/users/shalvin/repos","events_url":"https://api.github.com/users/shalvin/events{/privacy}","received_events_url":"https://api.github.com/users/shalvin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jason-edwards/price-visualiser/labels/feature","name":"feature","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T07:07:12Z","updated_at":"2015-05-29T06:40:21Z","closed_at":"2015-05-29T06:40:21Z","body":"The data grabber should cache the latest values from the database.\r\nWhen it scapes the data, it checks the cached value to see if it is different. If it is, then it should save it to the database and update the cached value.\r\nThe cached values should be initialised from the database at the start of the script."},"comment":{"url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/comments/106710421","html_url":"https://github.com/jason-edwards/price-visualiser/issues/2#issuecomment-106710421","issue_url":"https://api.github.com/repos/jason-edwards/price-visualiser/issues/2","id":106710421,"user":{"login":"shalvin","id":2045520,"avatar_url":"https://avatars.githubusercontent.com/u/2045520?v=3","gravatar_id":"","url":"https://api.github.com/users/shalvin","html_url":"https://github.com/shalvin","followers_url":"https://api.github.com/users/shalvin/followers","following_url":"https://api.github.com/users/shalvin/following{/other_user}","gists_url":"https://api.github.com/users/shalvin/gists{/gist_id}","starred_url":"https://api.github.com/users/shalvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shalvin/subscriptions","organizations_url":"https://api.github.com/users/shalvin/orgs","repos_url":"https://api.github.com/users/shalvin/repos","events_url":"https://api.github.com/users/shalvin/events{/privacy}","received_events_url":"https://api.github.com/users/shalvin/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T06:40:21Z","updated_at":"2015-05-29T06:40:21Z","body":"Ok good point. In that case its probably best to leave it as it is. You're trading space (storage for the data points) for time (to process graphs to allow for flatlining) or vice versa. Either way its not a major thing especially since space isn't an issue right now. Maybe if it needs optimisation later we can come back to this."}}