Project

General

Profile

Actions

Bug #6737

closed

wp-rss-multi-importer cron job requires huge number of DB queries

Added by Boone Gorges over 7 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2016-11-15
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

The wp-rss-multi-importer is responsible for - wait for it - importing RSS feed items. It also appears to contain a cleanup routine that runs every hour, and that cleanup routine requires a very large number of database queries. I've attached a sample log.

It doesn't appears that there are any outright loops involved, and separate cron jobs don't appear to process the same post over and over again. I think the issue is just that, on sites that have import logs of feeds, there's a lot of cleanup to do. And deleting items in WordPress is not very streamlined.

This is likely not a new issue with the plugin, though it's possible that it's cropping up recently because of increased usage. The site where the problem seems to be most prevalent is gcenglish, so that's a good place to start debugging. If it appears, for example, that all feeds were added to that site within the last week, then it's reasonable to assume that it's part of our problem.


Files

wp-rss-multi-importer.txt (615 KB) wp-rss-multi-importer.txt Boone Gorges, 2016-11-15 09:47 PM

Related issues

Related to CUNY Academic Commons - Bug #8930: Throttle Jetpack batch routinesResolvedBoone Gorges2017-11-22

Actions
Related to CUNY Academic Commons - Feature #8987: Migrate away from wp-cronResolvedBoone Gorges2017-12-07

Actions
Actions

Also available in: Atom PDF