<p>One way to get around this is to create a new Asset Source (let’s call it “Staging”).</p>

<ol>
<li>Add the folder of unindexed images/assets into <em>Staging</em>, our new asset source (which should otherwise be empty).</li>
<li>Now, run the asset indexer via Settings > Update Asset Indexes only for our new source, <em>Staging</em>.</li>
<li>Once the indexer has done its job, go to the Assets section of the Control Panel and drag the freshly indexed folder of images/assets from <em>Staging</em> to the desired Asset Source.</li>
</ol>

<p>Repeat the above process every time you wish to index a bunch of new assets without touching the previously indexed assets.</p>

CC BY-SA 3.0
2016-04-28T13:27:32.623Z
2016-04-28T13:27:32.623Z
rungta
<p>Craft is a miracle for us but we've hit a snag.</p>

<p>We have about 100 products with around 10 images each.</p>

<p>We've scraped the images from the old site and put them into the appropriately named folders in assets.</p>

<p>Each time we add more, we have to run the asset reindexer which will only reindex the entire section. So even if we add a single folder of images, the entire lot are indexed again. If you've ever used the asset indexer you'll know that for whatever reason it is dog slow.</p>

<p>Why is this?
Could the immediate folder not be quickly indexed when the asset viewer is opened in the back end or at least provide an option to reindex that specific entrys assets?</p>

<p>Future projects may have 10,000 assets+ so it is a concern.</p>

<p>I'm open to better workflow suggestions as well.</p>

<p>Thanks :)</p>

CC BY-SA 3.0
2015-03-05T17:03:41.563Z
I had a similar issue. Check out my question here: http://craftcms.stackexchange.com/questions/6505/update-asset-index-in-batches.
Aaron Berkowitz
CC BY-SA 3.0
2015-03-05T17:10:27.990Z
Ah yes, thanks! Perhaps stackexchange was inappropriate but I was really looking for a conversation about how this could be better integrated in vanilla craftcms. The answer "write a plugin" is not really a great answer.
Jake Cattrall
CC BY-SA 3.0
2015-03-05T17:50:56.637Z
"Each time we add more" - if you're adding them through Craft, you don't need to re-index them every time.
Brad Bell
CC BY-SA 3.0
2015-03-06T11:43:10.163Z
I see what you're saying. It would be nice to have some kind of quick index button in the gallery view. It would only index the parent content. The issue is that after a considerable time sometimes my VM just dies and the asset index stops dead which is why the "batches" issue exists. The workflow for this needs to be better.
Jake Cattrall
CC BY-SA 3.0
2016-03-07T12:23:48.780Z
Sounds like your bouncing into resource limits, Jake. Are you able to bump processor and RAM resources?
Matt P
CC BY-SA 3.0
2016-04-28T13:44:35.497Z
Brad is right... Why are you not simply uploading new images through the Craft UI?
Lindsey D
<entries><assets><performance>
Sluggish Asset Indexing
# Sluggish Asset Indexing

(Asked by: username_0 on 2015-03-05)

Craft is a miracle for us but we've hit a snag.

We have about 100 products with around 10 images each.

We've scraped the images from the old site and put them into the appropriately named folders in assets.

Each time we add more, we have to run the asset reindexer which will only reindex the entire section. So even if we add a single folder of images, the entire lot are indexed again. If you've ever used the asset indexer you'll know that for whatever reason it is dog slow.

Why is this?
Could the immediate folder not be quickly indexed when the asset viewer is opened in the back end or at least provide an option to reindex that specific entrys assets?

Future projects may have 10,000 assets+ so it is a concern.

I'm open to better workflow suggestions as well.

Thanks :)

**Tags:** entries, assets, performance

> **Comments:**
> **username_1**: I had a similar issue. Check out my question here: http://craftcms.stackexchange.com/questions/6505/update-asset-index-in-batches.  
> **username_0**: Ah yes, thanks! Perhaps stackexchange was inappropriate but I was really looking for a conversation about how this could be better integrated in vanilla craftcms. The answer "write a plugin" is not really a great answer.  
> **username_2**: "Each time we add more" - if you're adding them through Craft, you don't need to re-index them every time.  
> **username_0**: I see what you're saying. It would be nice to have some kind of quick index button in the gallery view. It would only index the parent content. The issue is that after a considerable time sometimes my VM just dies and the asset index stops dead which is why the "batches" issue exists. The workflow for this needs to be better.  
> **username_3**: Sounds like your bouncing into resource limits, Jake. Are you able to bump processor and RAM resources?  
> **username_4**: Brad is right... Why are you not simply uploading new images through the Craft UI?  

---

## 1 answers

### Answer by username_5 on 2016-04-28. Score: 3

One way to get around this is to create a new Asset Source (let’s call it “Staging”).

1. Add the folder of unindexed images/assets into *Staging*, our new asset source (which should otherwise be empty).
2. Now, run the asset indexer via Settings > Update Asset Indexes only for our new source, *Staging*.
3. Once the indexer has done its job, go to the Assets section of the Control Panel and drag the freshly indexed folder of images/assets from *Staging* to the desired Asset Source.

Repeat the above process every time you wish to index a bunch of new assets without touching the previously indexed assets.


---

