{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/2692","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/2692/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/2692/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/2692/events","html_url":"https://github.com/activeadmin/activeadmin/issues/2692","id":22483740,"number":2692,"title":"Handling huge associations","user":{"login":"seanlinsley","id":688886,"avatar_url":"https://avatars.githubusercontent.com/u/688886?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlinsley","html_url":"https://github.com/seanlinsley","followers_url":"https://api.github.com/users/seanlinsley/followers","following_url":"https://api.github.com/users/seanlinsley/following{/other_user}","gists_url":"https://api.github.com/users/seanlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlinsley/subscriptions","organizations_url":"https://api.github.com/users/seanlinsley/orgs","repos_url":"https://api.github.com/users/seanlinsley/repos","events_url":"https://api.github.com/users/seanlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/seanlinsley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/Awaiting%20developer%20feedback","name":"Awaiting developer feedback","color":"7080d7"},{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/Discussion","name":"Discussion","color":"ffb600"},{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/Feature","name":"Feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/activeadmin/activeadmin/milestones/18","html_url":"https://github.com/activeadmin/activeadmin/milestones/1.0.0","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/milestones/18/labels","id":302820,"number":18,"title":"1.0.0","description":"+ migrates from meta_search to its successor, ransack\r\n+ removes support for Rails < 3.2\r\n+ adds support for Rails 4","creator":{"login":"gregbell","id":719,"avatar_url":"https://avatars.githubusercontent.com/u/719?v=3","gravatar_id":"","url":"https://api.github.com/users/gregbell","html_url":"https://github.com/gregbell","followers_url":"https://api.github.com/users/gregbell/followers","following_url":"https://api.github.com/users/gregbell/following{/other_user}","gists_url":"https://api.github.com/users/gregbell/gists{/gist_id}","starred_url":"https://api.github.com/users/gregbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregbell/subscriptions","organizations_url":"https://api.github.com/users/gregbell/orgs","repos_url":"https://api.github.com/users/gregbell/repos","events_url":"https://api.github.com/users/gregbell/events{/privacy}","received_events_url":"https://api.github.com/users/gregbell/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":35,"state":"open","created_at":"2013-04-04T14:04:03Z","updated_at":"2015-05-04T12:37:48Z","due_on":"2014-03-29T07:00:00Z","closed_at":null},"comments":36,"created_at":"2013-11-11T22:48:33Z","updated_at":"2015-09-26T10:30:07Z","closed_at":null,"body":"AA users are commonly frustrated by our naive building of dropdowns everywhere for a given association, because that option isn't scalable when you have millions of records.\r\n\r\nThe most obvious option is to allow the developer to blacklist certain models or tables:\r\n```ruby\r\nActiveAdmin.setup do |config|\r\n  config.huge_db_tables = %w[tags categories user_actions]\r\nend\r\n```\r\n\r\nThe question then becomes: what do you replace it with?\r\n\r\nAs far as I can tell, there are three options:\r\n+ just remove it\r\n+ use [AJAX](https://github.com/meltingice/ajax-chosen)\r\n+ use Rails' `pluck` method to just grab a name and an ID\r\n\r\nSo which would be best, as far as integrating into the official repo? (both for filters and forms)"},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/143418105","html_url":"https://github.com/activeadmin/activeadmin/issues/2692#issuecomment-143418105","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/2692","id":143418105,"user":{"login":"dmitry","id":5091,"avatar_url":"https://avatars.githubusercontent.com/u/5091?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry","html_url":"https://github.com/dmitry","followers_url":"https://api.github.com/users/dmitry/followers","following_url":"https://api.github.com/users/dmitry/following{/other_user}","gists_url":"https://api.github.com/users/dmitry/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry/subscriptions","organizations_url":"https://api.github.com/users/dmitry/orgs","repos_url":"https://api.github.com/users/dmitry/repos","events_url":"https://api.github.com/users/dmitry/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T10:30:07Z","updated_at":"2015-09-26T10:30:07Z","body":"@mwlang nothing done since: https://github.com/activeadmin/activeadmin/issues/2692#issuecomment-29355831"}}