Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#10592 closed defect (bug) (fixed)

Options table overhead leads to 500 server error

Reported by: ryan's profile ryan Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Optimization Keywords: has-patch
Focuses: Cc:

Description

Some hosts are reporting overhead in the range of 600k for options tables. Once it gets this big, 500 server errors result. Perhaps we can query overhead from time to time and issue a warning in the admin if it gets too bloated.

Attachments (2)

10592.diff (590 bytes) - added by Denis-de-Bernardy 15 years ago.
10592.2.diff (550 bytes) - added by Denis-de-Bernardy 15 years ago.

Download all attachments as: .zip

Change History (8)

#1 @Mittineague
15 years ago

  • Cc Mittineague added

Options table bloat has been a problem for a while, it's why I wrote the Clean Options plugin. AFAIK the main problem is from old rss_[hash] and rss_[hash]_ts rows left over from feed caching. Although many plugins/themes do not clean up after themselves when they're removed, I gather from my plugin users that have left feedback that old plugin/theme options are less of a problem.

It seems with the switch from Magpie to SimplePie the cached feed rows are now "transient" and so far, unlike the "rss" rows, they seem to be taking care of themselves.

If this in fact the case, it might be possible to put code in somewhere that will remove all the old "rss" rows.

*Note, if you use regex to remove them, take care not to remove the "rss_excerpt_length", "rss_use_excerpt", or "rss_language" options.

#2 @ryan
15 years ago

We should definitely remove the old rss cache rows. That can be done during upgrade.

#3 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

#10728 can be used to clear overhead. That's probably as good as we'll get.

#4 @Denis-de-Bernardy
15 years ago

  • Keywords has-patch added
  • Resolution fixed deleted
  • Status changed from closed to reopened

re-opening with a patch to flush old magpie junk on upgrades

#5 @hakre
15 years ago

Changing the SQL query in the patch sothat there is no need for an OR might make this even more simple. Just an Idea, I'm not shure if the two patterns for option names are it for magpie rss. But this will remove a lot of old junk at least.

#6 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [12210]) Delete old magpie cache options. Props Denis-de-Bernardy. fixes #10592

Note: See TracTickets for help on using tickets.