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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drush_indexing_loop.patch | 1.23 KB | bachbach |
Comments
Comment #1
drunken monkeyIt 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.
Comment #2
bachbach commenteddefinitely needed !
Comment #3
bachbach commentedHI,
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
Comment #4
bachbach commentedok sorry didn't see that 7.x-1.3 comes with batch indexing …