Patch #5415

Fewer SQL statements generated for watcher_recipients

Added by Holger Just 4 months ago. Updated 2 months ago.

Status:Closed Start:2010-04-30
Priority:Normal Due date:
Assigned to:Eric Davis % Done:

100%

Category:Code Cleanup
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 (728 Bytes) Holger Just, 2010-04-30 14:31

Associated revisions

Revision 3803
Added by Eric Davis 2 months ago

Optimize the N+1 query in watcher_recipients. #5415

Contributed by Holger Just

History

Updated by Eric Davis 2 months ago

  • Status changed from New to Closed
  • Assigned to 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