{"action":"created","issue":{"url":"https://api.github.com/repos/anthill/pheromon/issues/33","labels_url":"https://api.github.com/repos/anthill/pheromon/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/anthill/pheromon/issues/33/comments","events_url":"https://api.github.com/repos/anthill/pheromon/issues/33/events","html_url":"https://github.com/anthill/pheromon/issues/33","id":107344066,"number":33,"title":"Make pheromon neutral about what's being measured","user":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-19T16:52:07Z","updated_at":"2015-09-21T08:26:51Z","closed_at":null,"body":"Nice move on https://github.com/anthill/pheromon/blob/f94360f14515a7e13f8afcd4681ecd5210601da2/database/management/createTables.sql#L57 but it's not enough. We cannot be sure a `real[]` is generic enough for all purposes. `text` or `bytea` may be more appropriate.\r\n\r\nAlso, an index needs to be added on the `type` column... well `measurement_date` and `sensor_id` too I guess."},"comment":{"url":"https://api.github.com/repos/anthill/pheromon/issues/comments/141906315","html_url":"https://github.com/anthill/pheromon/issues/33#issuecomment-141906315","issue_url":"https://api.github.com/repos/anthill/pheromon/issues/33","id":141906315,"user":{"login":"iOiurson","id":8417814,"avatar_url":"https://avatars.githubusercontent.com/u/8417814?v=3","gravatar_id":"","url":"https://api.github.com/users/iOiurson","html_url":"https://github.com/iOiurson","followers_url":"https://api.github.com/users/iOiurson/followers","following_url":"https://api.github.com/users/iOiurson/following{/other_user}","gists_url":"https://api.github.com/users/iOiurson/gists{/gist_id}","starred_url":"https://api.github.com/users/iOiurson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOiurson/subscriptions","organizations_url":"https://api.github.com/users/iOiurson/orgs","repos_url":"https://api.github.com/users/iOiurson/repos","events_url":"https://api.github.com/users/iOiurson/events{/privacy}","received_events_url":"https://api.github.com/users/iOiurson/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T08:26:51Z","updated_at":"2015-09-21T08:26:51Z","body":"Dumb question: what's an index in a DB ?\r\nAnd the `type` should belong to the measurement, because one sensor can technically have different ways to measure (wifi and bluetooth for instance)."}}