Patch #5415

Fewer SQL statements generated for watcher_recipients

Added by Holger Just over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:2010-04-30
Priority:NormalDue date:
Assignee:Eric Davis% Done:

100%

Category:Code cleanup/refactoring
Target version:1.0.0 (RC)

Description

Using this patch, acts_as_watchable#watcher_recipients will only issue up to one sql statement instead of 1 + number of watchers.

watcher_recipients.diff Magnifier (728 Bytes) Holger Just, 2010-04-30 14:31

Associated revisions

Revision 3803
Added by Eric Davis over 7 years ago

Optimize the N+1 query in watcher_recipients. #5415

Contributed by Holger Just

History

#1 Updated by Eric Davis over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Eric Davis
  • Target version set to 1.0.0 (RC)
  • % Done changed from 0 to 100

Added in r3803. This should be a nice performance boost for sending notifications on heavily watched issues.

Also available in: Atom PDF