On Miércoles, 28 de Abril de 2010 09:09:08 [email protected] escribió: > 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
You don't need to use a field override to disable the count, you can use config.columns[:association_name].associated_number = false > > 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. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
