Project

General

Profile

« Previous | Next » 

Revision 12445

Fixed slow SELECT ... FOR UPDATE query when deleting an issue.

View differences:

trunk/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb
443 443
          in_tenacious_transaction do
444 444
            reload_nested_set
445 445
            # select the rows in the model that extend past the deletion point and apply a lock
446
            self.class.base_class.
446
            nested_set_scope.
447 447
              select("id").
448 448
              where("#{quoted_left_column_name} >= ?", left).
449 449
              lock(true).

Also available in: Unified diff