jedis icon indicating copy to clipboard operation
jedis copied to clipboard

KEYS command: set timeout to infinite?

Open grdmitro opened this issue 15 years ago • 4 comments

some commands already use setTimeoutInfinite and rollbackTimeout afterwards could it apply to KEYS as well?

grdmitro avatar Aug 15 '11 16:08 grdmitro

why? it takes a long time to return? when you create Jedis you can specify a timeout there. is that enough?

xetorthio avatar Aug 31 '11 12:08 xetorthio

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

grdmitro avatar Aug 31 '11 12:08 grdmitro

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

xetorthio avatar Aug 31 '11 13:08 xetorthio

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 :)

grdmitro avatar Aug 31 '11 13:08 grdmitro