Show
Ignore:
Timestamp:
04/13/08 04:41:46 (20 months ago)
Author:
bchoate
Message:

Applied patches from Ogawa-san to add an optimized 'exist' method for testing for existing rows. BugId:69661

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/lib/MT/Blocklist.pm

    r1495 r1873  
    3232    my ($blog_id, $action, @urls) = @_; 
    3333    foreach my $url (@urls) { 
    34         next if $class->count({blog_id => $blog_id, text => $url}); 
     34        next if $class->exist({blog_id => $blog_id, text => $url}); 
    3535        my $this = $class->new(); 
    3636        $this->set_values({blog_id => $blog_id, text => $url,