module ManagerRefresh
  class ApplicationRecordLite
    attr_reader :base_class_name, :id

    # ApplicationRecord is very bloaty in memory, so this class server for storing base_class and primary key
    # of the ApplicationRecord, which is just enough for filling up relationships
    def initialize(base_class_name, id)
      @base_class_name = base_class_name
      @id              = id
    end
  end
end

Add ApplicationRecordLite that is for holding is and class of AR
Add ApplicationRecordLite that is for holding is and class of AR

Add ApplicationRecordLite that is for holding is and class of AR.
ActiveRecord object are to huge and we need a query to obtain them,
in most cases we have a class and id, which is just enough
to fil la relation. No need to go to db.
