Hi Sergio,
Thanks for your help:
Hi here is the migration, looks like I do have a lot of associations:
#Single-Table Inheritance pattern for application records
class CreateApplicationRecords < ActiveRecord::Migration
def self.up
create_table :application_records do |t|
t.string :type
# common attributes
t.integer :candidate_id, :options =>
"CONSTRAINT fk_application_record_candidates REFERENCES
candidates(id)"
t.integer :position_id, :options =>
"CONSTRAINT fk_application_record_positions REFERENCES
positions(id)"
t.date :received_date
t.integer :interview_record_id, :options =>
"CONSTRAINT fk_application_record_interview_record REFERENCES
interview_records(id)"
t.integer :result_id, :options =>
"CONSTRAINT fk_application_record_results REFERENCES
results(id)"
t.string :remark
# attributes for type=InternalReferral
t.string :recommended_by
t.integer :bonu_id, :options =>
"CONSTRAINT fk_application_record_as_internal_referral_bonuses
REFERENCES bonus(id)"
# attributes for type=HeadhunterReferral
t.integer :headhunter_id, :options =>
"CONSTRAINT
fk_application_record_as_headhunter_referral_headhunters REFERENCES
headhunters(id)"
t.string :candidate_number
t.integer :years_of_experience
# attributes for type=GeneralChannel
t.integer :channel_id, :options =>
"CONSTRAINT fk_application_record_as_general_channel_others
REFERENCES channels(id)"
t.timestamps
end
end
def self.down
drop_table :application_records
end
end
On Mon, Sep 27, 2010 at 4:37 PM, Sergio Cambra .:: entreCables S.L. ::. <
[email protected]> wrote:
> On Domingo, 26 de Septiembre de 2010 13:08:07 Shanbo Li escribió:
> > Hello there,
> >
> > I saw a lot of
> > Rendered _list_record (192.0ms)
> > Rendered _list_actions (13.0ms)
> > from my log which takes a lot of time.
> > Is it normal? I do not think a list will need so many rendered.
>
> Do you have many association columns? Maybe is checking permissions for
> many
> columns, because association columns have links. I can't help you without
> more
> info.
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.