title: Can indexer events be queued to run later in Magento?
body: <p>I noticed that Magento CE 1.7 uses indexer events to process things like product saves etc. These events are stored in a table index_event and index_process_event.</p>
  
  <p>Now, my situation is the following. I have a product import script that inserts between 1 and 10.000 products directly in the DB. This is very fast and much better that using the Magento API in my case.</p>
  
  <p>As a safety measure, I mark all indexes as needing reindexing afterwards. This works fine, but if you're importing only 10 products, it's a bit overkill. A full reindex will take forever.</p>
  
  <p>Basically I'd like to queue the indexer events and process them with cron asynchronously after the import, but I don't know if this is possible especially since it would need to be asynchronously and using cron (I don't want to block the UI).</p>
  
  <p>I'd first like to understand the steps involved and then go from there to find the best solution.</p>
  
  <p>As a quick-and-dirty solution I thought about creating my own queue table and run $product->save() on each product - but that may also have it's pitfalls.</p>
  
  <p>Update: I found this extension which seams to use a queue as well, but my original question remains. Can this be done on a regular Magento install? <a href="http://mirasvit.com/magento-extensions/performance-optimization/magento-asynchronous-cache.html" rel="nofollow noreferrer">http://mirasvit.com/magento-extensions/performance-optimization/magento-asynchronous-cache.html</a></p>