{"action":"closed","issue":{"url":"https://api.github.com/repos/dmurph/indexed-db-observers/issues/8","labels_url":"https://api.github.com/repos/dmurph/indexed-db-observers/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dmurph/indexed-db-observers/issues/8/comments","events_url":"https://api.github.com/repos/dmurph/indexed-db-observers/issues/8/events","html_url":"https://github.com/dmurph/indexed-db-observers/issues/8","id":60173014,"number":8,"title":"Tiers of observation","user":{"login":"arthurhsu","id":6006159,"avatar_url":"https://avatars.githubusercontent.com/u/6006159?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurhsu","html_url":"https://github.com/arthurhsu","followers_url":"https://api.github.com/users/arthurhsu/followers","following_url":"https://api.github.com/users/arthurhsu/following{/other_user}","gists_url":"https://api.github.com/users/arthurhsu/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurhsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurhsu/subscriptions","organizations_url":"https://api.github.com/users/arthurhsu/orgs","repos_url":"https://api.github.com/users/arthurhsu/repos","events_url":"https://api.github.com/users/arthurhsu/events{/privacy}","received_events_url":"https://api.github.com/users/arthurhsu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-06T23:16:02Z","updated_at":"2015-04-13T20:42:12Z","closed_at":"2015-04-13T20:42:12Z","body":"I think one thing worth exploring is the tier of observation\r\n\r\nSay we can have observations done in three different service levels:\r\n\r\n1. level 1: just tell the subscriber something changed in this object store\r\n2. level 2: tell the subscriber what rows are changed in this object store, with a read-only transaction.\r\n3. level 3: tell the subscriber what rows are changed, and also the new contents of the rows.\r\n\r\nI think point 2 and 3 are similar, but point 3 will have higher memory pressure (esp in Chrome's multi-process environment). But developers are very likely to either just want to know something changed, or what had changed, which cancelled out the slight advantage of point 2 since everything will be read into memory one way or the other."}}