On Miércoles, 28 de Abril de 2010 20:51:05 Richard Zheng escribió:
> Still the same. I am using rails 2.3.3. How do I find out the version of
> AS?

You can't, we don't release versions. You can remove your active_scaffold 
directory and install latest rails-2.3 branch:

script/plugin install git://github.com/activescaffold/active_scaffold.git -r 
rails-2.3

Do you get the association size inside brackets? You shouldn't get the size 
shown neither the count query with associated_number = false

>
> On Wed, Apr 28, 2010 at 12:44 AM, Sergio Cambra .:: entreCables S.L. ::. <
>
> [email protected]> wrote:
> > On Miércoles, 28 de Abril de 2010 09:09:08 
[email protected]ó:
> > > 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]<activescaffold%2Bunsubscr
> > > >[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]<activescaffold%2Bunsubscribe@
> >googlegroups.com> .
> > For more options, visit this group at
> > http://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.

Reply via email to