EDIT: WARNING: These patches don't work. Don't use them. $nodes in this form are not serializable.
Disclaimer: I think caching nodes should NOT be done by this module, and if you're caching nodes already, you don't need this. See advcache module for an example.
This patch caches nodes in apachesolr_nodeapi on insert and update. It clears the cache on delete. It uses the cache_apachesolr table. This speeds the indexing of 10,000 nodes from 122 seconds to 45 seconds. This is useful if you have a lot of new nodes, have a lot of updates, or are in development and need to reindex often to test changes to your search.
I don't think this will ever make it into the module, so you'll probably have to use the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | apachesolr_node_cache.patch | 2.01 KB | robertdouglass |
| apachesolr_node_cache.patch | 1.95 KB | robertdouglass |
Comments
Comment #1
robertdouglass commentedThis version sets the cache after node_load during indexing as well.
Comment #2
robertdouglass commentedAnd, as mentioned, this won't go into the module, so marking "won't fix".
Comment #3
robertdouglass commentedWARNING: These patches don't work. Don't use them. $nodes in this form are not serializable.