In response to some solr server setups that throttle operations, there may be a need for some people to limit the number of delete operations that are sent to the server on cron runs.

Comments

robertdouglass’s picture

I don't really like this implementation for the general public. Is it proven that anyone needs this protection on normal servers, or just servers that have throttling? Also seems like an odd thing to make a configuration for (not that this patch has configuration), so I wouldn't want to go down that route.

pwolanin’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
Priority: Normal » Critical

Let's find a reasonable approach for this asap - it continues to be a problem.

I'm inclined to pt this patch in for the next RC if we don't have something better

pwolanin’s picture

StatusFileSize
new6.18 KB

Here's a mostly untested patch that groups Solr deletes by 500 at a time rather than sending one delete query per node.

This should give better performance in almost all cases, and be more compatible with a limits on update queries.

pwolanin’s picture

StatusFileSize
new7.99 KB

That patch isn't really working and doesn't provide a useful count of nodes to be deleted. Here's a better one.

pwolanin’s picture

StatusFileSize
new7.99 KB

With update to README

pwolanin’s picture

StatusFileSize
new8.62 KB

oops - missed README changes

pwolanin’s picture

Title: Throttle deletes on cron run » consolidate Solr queries on cron run
StatusFileSize
new8.76 KB

minor tweak - stop sending updates on cron if one fails.

pwolanin’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)

committed to 6.x-1.x

robertdouglass’s picture

Version: 6.x-2.x-dev » 5.x-2.x-dev

And to DRUPAL-6--2

claudiu.cristea’s picture

Assigned: Unassigned » claudiu.cristea
StatusFileSize
new16.99 KB

The patch for DRUPAL-5--2.

claudiu.cristea’s picture

Status: Patch (to be ported) » Fixed

Fixed in #278744.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.