From e38923b584ffd8ac053f6ef04a800267df84d3c5 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 17 Jan 2017 23:18:14 -0800 Subject: [PATCH] Added note about connection pool --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bbc5f7e..bdc4854 100644 --- a/README.md +++ b/README.md @@ -1234,10 +1234,10 @@ Product.search_index.promote(index_name, update_refresh_interval: true) ### Queuing -Push ids of records needing reindexed to a queue and reindex in bulk for better performance. First, set up Redis in an initializer. +Push ids of records needing reindexed to a queue and reindex in bulk for better performance. First, set up Redis in an initializer. We recommend using [connection_pool](https://github.com/mperham/connection_pool). ```ruby -Searchkick.redis = Redis.new +Searchkick.redis = ConnectionPool.new { Redis.new } ``` And ask your models to queue updates. -- libgit2 0.21.0