[Rt-devel] CGM shrink

Ruslan Zakirov ruslan.zakirov at gmail.com
Fri Feb 13 12:33:55 EST 2009


don't forget to analyze table after that.

On Fri, Feb 13, 2009 at 6:51 PM, Emmanuel Lacour
<elacour at easter-eggs.com> wrote:
> On Wed, Feb 11, 2009 at 04:51:19PM +0300, Ruslan Zakirov wrote:
>> svk snn lib/RT/CachedGroupMember_Overlay.pm, I think it's one line
>> change in method Create. Ping me if you wouldn't find it.
>>
>
> Thanks Ruz :), seems to be this change:
>
> @@ -148,6 +149,8 @@
>         }
>     }
>
> +    return $id if $args{'Member'}->id == $args{'Group'}->id;
> +
>     if ( $args{'Member'}->IsGroup() ) {
>         my $GroupMembers = $args{'Member'}->Object->MembersObj();
>         while ( my $member = $GroupMembers->Next() ) {
>
>
>
> That will have some impact here as the cgm table contains 1232959 rows and the
> shrink script removes 390419 rows :)
>
>



-- 
Best regards, Ruslan.


More information about the Rt-devel mailing list