Skip to content

Handle huge associations #2692

@seanlinsley

Description

@seanlinsley

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.

The most obvious option is to allow the developer to blacklist certain models or tables:

ActiveAdmin.setup do |config|
  config.huge_db_tables = %w[tags categories user_actions]
end

The question then becomes: what do you replace it with?

As far as I can tell, there are three options:

  • just remove it
  • use AJAX
  • use Rails' pluck method to just grab a name and an ID

So which would be best, as far as integrating into the official repo? (both for filters and forms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions