KEYS command: set timeout to infinite?
some commands already use setTimeoutInfinite and rollbackTimeout afterwards could it apply to KEYS as well?
why? it takes a long time to return? when you create Jedis you can specify a timeout there. is that enough?
yeah, in my case it will block server for seconds, which is not acceptable as usual timeout I'm forced to recreate jedis with big/infinite timeout for the sake of using keys cmd I'm considering keys as naturally heavy command, hence my suggestion. plz feel free to close this issue if u think otherwise. thanks
But you can set a timeout to Jedis when instantiating. Did you try that?
On Wed, Aug 31, 2011 at 9:38 AM, grdmitro < [email protected]>wrote:
yeah, in my case it will block server for seconds, which is not acceptable as usual timeout I'm forced to recreate jedis with big/infinite timeout for the sake of using keys cmd I'm considering keys as naturally heavy command, hence my suggestion. plz feel free to close this issue if u think otherwise. thanks
Reply to this email directly or view it on GitHub: https://github.com/xetorthio/jedis/issues/192#issuecomment-1956792
yes, that's exactly what's happening at the moment, as I said in previous reply, I am instantiating Jedis with infinite timeout for performing KEYS cmd I would prefer using existing pooled instances with normal timeout instead, in order to avoid configuration hassle anyway, closing this :)