Closed Bug 281787 Opened 20 years ago Closed 19 years ago

Sanitycheck times out with sufficiently large attachment table

Categories

(Bugzilla :: Bugzilla-General, defect, P2)

2.19.2

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bugreport, Assigned: bugreport)

Details

Attachments

(1 file, 1 obsolete file)

With a sufficiently large attachment table [15000 attachments totalling 12GB on
a rather busy Solaris system], sanitycheck will take a long time to process the
corss-check for attachments.submitter_id and apache2 will time out after 300
seconds with no output.
I suspect this occurs on this specific field because there is no index on
attachments.submitter_id

Workaround to increase apache2 timeout to 1200 secs works, but it probably pays
to fix this at its source.
Actually, it seems the apache timeout itself is not the only issue.  
Severity: normal → major
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.20
Attached patch Patch - index submitter_id (obsolete) — Splinter Review
OK, adding an index on submitter_id makes almost no difference in DB size but
speeds sanitycheck up to seconds.  Justdave's inactive account check also
speeds up dramatically.
Attachment #174140 - Flags: review?(justdave)
Assignee: general → bugreport
Flags: blocking2.20?
don't suppose we'd be able to sneak an index on bugs_activity.who in here for
the same reason, could we? :)

That was the other "lack of index" that was slowing down my inactive account
check script.  It'll also speed up searches on who changed what, I would imagine.
Attachment #174140 - Flags: review?(justdave)
OK
Attachment #174140 - Attachment is obsolete: true
Attachment #174141 - Flags: review?(justdave)
Attachment #174141 - Flags: review?(justdave) → review+
Flags: blocking2.20? → approval+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: