Hi, List view works for me without count query. If I have a has_many relation. 1. includes = [] 2. list_column_helper for column returns static string
Which version of AS are you using? -- Volker On 27 Apr., 23:05, Richard Zheng <[email protected]> wrote: > Hi, > > We have a large association table and it's slow loading in the parent table > column. Table 'companies' has an association table 'call_cdrs'. In > companies_controller, we have columns[:call_cdrs].includes = nil. However > the rails log still shows the following mysql statement. We also override > the helper to show a string, instead of the list or count. Is there a way to > avoid doing this? Even with index, it takes long to execute. > > SELECT count(*) AS count_all FROM `call_cdrs` WHERE (`call_cdrs`.company_id > = XXX) > > Thanks, > R > > -- > 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 > athttp://groups.google.com/group/activescaffold?hl=en. -- 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.
