Project

General

Profile

Actions

Bug #687

closed

rake reports:expire abuses memory and network bandwidth

Added by Kal McFate about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Noticed this specifically from the reports:expire process:

SELECT * FROM `reports` WHERE (created_at < '2011-02-22 15:52:29' and status = 0)

There is no need at all to send the entire row. With thousands of hosts with 50 reports a day, this job sends GB of data over the network from the sql server (and into the rake processes memory) every time it is run just to delete reports. This should be optimized as it can cause some serious memory and network usage problems if processing a large number of reports.

Actions

Also available in: Atom PDF