{"action":"created","issue":{"url":"https://api.github.com/repos/RackHD/on-core/issues/49","labels_url":"https://api.github.com/repos/RackHD/on-core/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/RackHD/on-core/issues/49/comments","events_url":"https://api.github.com/repos/RackHD/on-core/issues/49/events","html_url":"https://github.com/RackHD/on-core/pull/49","id":123039710,"number":49,"title":"Adds node ID caching layer to lookup service.","user":{"login":"rolandpoulter","id":51327,"avatar_url":"https://avatars.githubusercontent.com/u/51327?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandpoulter","html_url":"https://github.com/rolandpoulter","followers_url":"https://api.github.com/users/rolandpoulter/followers","following_url":"https://api.github.com/users/rolandpoulter/following{/other_user}","gists_url":"https://api.github.com/users/rolandpoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandpoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandpoulter/subscriptions","organizations_url":"https://api.github.com/users/rolandpoulter/orgs","repos_url":"https://api.github.com/users/rolandpoulter/repos","events_url":"https://api.github.com/users/rolandpoulter/events{/privacy}","received_events_url":"https://api.github.com/users/rolandpoulter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-18T22:54:01Z","updated_at":"2015-12-22T13:54:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RackHD/on-core/pulls/49","html_url":"https://github.com/RackHD/on-core/pull/49","diff_url":"https://github.com/RackHD/on-core/pull/49.diff","patch_url":"https://github.com/RackHD/on-core/pull/49.patch"},"body":"https://groups.google.com/forum/#!topic/rackhd/CiRQhVdkE38\r\n\r\nAttempting to improve logging performance by introducing caching to lookup-service. First cache miss results in a DB query, subsequent cache lookups for the same IP or MAC address will wait for the first query to respond unless the there is already a valid entry in the cache.\r\n\r\nThis should greatly reduce number DB queries by the LookupService."},"comment":{"url":"https://api.github.com/repos/RackHD/on-core/issues/comments/166623321","html_url":"https://github.com/RackHD/on-core/pull/49#issuecomment-166623321","issue_url":"https://api.github.com/repos/RackHD/on-core/issues/49","id":166623321,"user":{"login":"yyscamper","id":511378,"avatar_url":"https://avatars.githubusercontent.com/u/511378?v=3","gravatar_id":"","url":"https://api.github.com/users/yyscamper","html_url":"https://github.com/yyscamper","followers_url":"https://api.github.com/users/yyscamper/followers","following_url":"https://api.github.com/users/yyscamper/following{/other_user}","gists_url":"https://api.github.com/users/yyscamper/gists{/gist_id}","starred_url":"https://api.github.com/users/yyscamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyscamper/subscriptions","organizations_url":"https://api.github.com/users/yyscamper/orgs","repos_url":"https://api.github.com/users/yyscamper/repos","events_url":"https://api.github.com/users/yyscamper/events{/privacy}","received_events_url":"https://api.github.com/users/yyscamper/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T13:54:27Z","updated_at":"2015-12-22T13:54:27Z","body":"@rolandpoulter :\r\n\r\nThe caching is good, I just wondering doesn't the mongodb have such caching capability? if so, in Mongodb or Waterline, we can have a common cache layer for all query.\r\n\r\nAnd could you explain how you sync your cache with real DB data?\r\n\r\n"}}