{"action":"created","issue":{"url":"https://api.github.com/repos/casbin/casbin/issues/121","repository_url":"https://api.github.com/repos/casbin/casbin","labels_url":"https://api.github.com/repos/casbin/casbin/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/casbin/casbin/issues/121/comments","events_url":"https://api.github.com/repos/casbin/casbin/issues/121/events","html_url":"https://github.com/casbin/casbin/issues/121","id":350635566,"node_id":"MDU6SXNzdWUzNTA2MzU1NjY=","number":121,"title":"How to solve the huge data when I use persistent Database?","user":{"login":"CHCP","id":5645296,"node_id":"MDQ6VXNlcjU2NDUyOTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5645296?v=4","gravatar_id":"","url":"https://api.github.com/users/CHCP","html_url":"https://github.com/CHCP","followers_url":"https://api.github.com/users/CHCP/followers","following_url":"https://api.github.com/users/CHCP/following{/other_user}","gists_url":"https://api.github.com/users/CHCP/gists{/gist_id}","starred_url":"https://api.github.com/users/CHCP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHCP/subscriptions","organizations_url":"https://api.github.com/users/CHCP/orgs","repos_url":"https://api.github.com/users/CHCP/repos","events_url":"https://api.github.com/users/CHCP/events{/privacy}","received_events_url":"https://api.github.com/users/CHCP/received_events","type":"User","site_admin":false},"labels":[{"id":579276404,"node_id":"MDU6TGFiZWw1NzkyNzY0MDQ=","url":"https://api.github.com/repos/casbin/casbin/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"hsluoyz","id":3787410,"node_id":"MDQ6VXNlcjM3ODc0MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3787410?v=4","gravatar_id":"","url":"https://api.github.com/users/hsluoyz","html_url":"https://github.com/hsluoyz","followers_url":"https://api.github.com/users/hsluoyz/followers","following_url":"https://api.github.com/users/hsluoyz/following{/other_user}","gists_url":"https://api.github.com/users/hsluoyz/gists{/gist_id}","starred_url":"https://api.github.com/users/hsluoyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsluoyz/subscriptions","organizations_url":"https://api.github.com/users/hsluoyz/orgs","repos_url":"https://api.github.com/users/hsluoyz/repos","events_url":"https://api.github.com/users/hsluoyz/events{/privacy}","received_events_url":"https://api.github.com/users/hsluoyz/received_events","type":"User","site_admin":false},"assignees":[{"login":"hsluoyz","id":3787410,"node_id":"MDQ6VXNlcjM3ODc0MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3787410?v=4","gravatar_id":"","url":"https://api.github.com/users/hsluoyz","html_url":"https://github.com/hsluoyz","followers_url":"https://api.github.com/users/hsluoyz/followers","following_url":"https://api.github.com/users/hsluoyz/following{/other_user}","gists_url":"https://api.github.com/users/hsluoyz/gists{/gist_id}","starred_url":"https://api.github.com/users/hsluoyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsluoyz/subscriptions","organizations_url":"https://api.github.com/users/hsluoyz/orgs","repos_url":"https://api.github.com/users/hsluoyz/repos","events_url":"https://api.github.com/users/hsluoyz/events{/privacy}","received_events_url":"https://api.github.com/users/hsluoyz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-08-14T23:45:30Z","updated_at":"2018-08-15T03:40:17Z","closed_at":null,"author_association":"NONE","body":"Hi hsluoyz,\r\n\r\n  I use casbin gorm_adapter to store policies and roles in database,  when I run the program, all policies will be load into memory. But if there are millions policies, I can not do this. How to solve the huge policy data? Can I check only one policy from database?\r\n\r\nCheers\r\nGordon"},"comment":{"url":"https://api.github.com/repos/casbin/casbin/issues/comments/413085014","html_url":"https://github.com/casbin/casbin/issues/121#issuecomment-413085014","issue_url":"https://api.github.com/repos/casbin/casbin/issues/121","id":413085014,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA4NTAxNA==","user":{"login":"CHCP","id":5645296,"node_id":"MDQ6VXNlcjU2NDUyOTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5645296?v=4","gravatar_id":"","url":"https://api.github.com/users/CHCP","html_url":"https://github.com/CHCP","followers_url":"https://api.github.com/users/CHCP/followers","following_url":"https://api.github.com/users/CHCP/following{/other_user}","gists_url":"https://api.github.com/users/CHCP/gists{/gist_id}","starred_url":"https://api.github.com/users/CHCP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHCP/subscriptions","organizations_url":"https://api.github.com/users/CHCP/orgs","repos_url":"https://api.github.com/users/CHCP/repos","events_url":"https://api.github.com/users/CHCP/events{/privacy}","received_events_url":"https://api.github.com/users/CHCP/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T03:40:17Z","updated_at":"2018-08-15T03:40:17Z","author_association":"NONE","body":"Thanks for your excellent reply. I will try Role Manager.\r\n\r\nWould you plan to split 'g' records from 'casbin_rule' to another table?"}}
{"actor":{"display_login":"CHCP"}}