[Rt-devel] CGM shrink

Emmanuel Lacour elacour at easter-eggs.com
Fri Feb 13 10:51:02 EST 2009


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 :)



More information about the Rt-devel mailing list