Spun off from #1133864: Drush integration.

To make the drush command for indexing more efficient, find a way to process the index in batches. Migrate module shows one way to do this.

CommentFileSizeAuthor
#3 drush_indexing_loop.patch1.23 KBbachbach

Comments

drunken monkey’s picture

It should also work with a simple loop, I guess. Maybe plus clearing the static entity cache in between iterations so the memory doesn't get exhausted.

bachbach’s picture

definitely needed !

bachbach’s picture

StatusFileSize
new1.23 KB

HI,

here is a patch which add looping for $ drush sapi-i

about the entity static cache stuff, i used entity_get_controller($index->item_type)->resetCache(); but it does not works …
could you tell me how to clear this cache, the loop is hiting php memory limit.

best

bachbach’s picture

Status: Active » Closed (duplicate)

ok sorry didn't see that 7.x-1.3 comes with batch indexing …