{"action":"created","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/24","labels_url":"https://api.github.com/repos/luin/ioredis/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/24/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/24/events","html_url":"https://github.com/luin/ioredis/issues/24","id":73189053,"number":24,"title":"Running a transaction on empty lists is extremely slow","user":{"login":"thelinuxlich","id":5043,"avatar_url":"https://avatars.githubusercontent.com/u/5043?v=3","gravatar_id":"","url":"https://api.github.com/users/thelinuxlich","html_url":"https://github.com/thelinuxlich","followers_url":"https://api.github.com/users/thelinuxlich/followers","following_url":"https://api.github.com/users/thelinuxlich/following{/other_user}","gists_url":"https://api.github.com/users/thelinuxlich/gists{/gist_id}","starred_url":"https://api.github.com/users/thelinuxlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelinuxlich/subscriptions","organizations_url":"https://api.github.com/users/thelinuxlich/orgs","repos_url":"https://api.github.com/users/thelinuxlich/repos","events_url":"https://api.github.com/users/thelinuxlich/events{/privacy}","received_events_url":"https://api.github.com/users/thelinuxlich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-05T03:15:30Z","updated_at":"2015-05-05T03:39:59Z","closed_at":null,"body":"The command is this:\r\n\r\n```\r\nredis.multi().lrange(redis_key, 0, 99).ltrim(redis_key, 100, -1).exec()\r\n```\r\nStrangely, it takes seconds to return result from a local redis cluster(3 masters, 3 slaves, exactly like the official tutorial) on empty lists. I've tested the same command inside redis-cli and as expected it returns the result instantly."},"comment":{"url":"https://api.github.com/repos/luin/ioredis/issues/comments/98931785","html_url":"https://github.com/luin/ioredis/issues/24#issuecomment-98931785","issue_url":"https://api.github.com/repos/luin/ioredis/issues/24","id":98931785,"user":{"login":"thelinuxlich","id":5043,"avatar_url":"https://avatars.githubusercontent.com/u/5043?v=3","gravatar_id":"","url":"https://api.github.com/users/thelinuxlich","html_url":"https://github.com/thelinuxlich","followers_url":"https://api.github.com/users/thelinuxlich/followers","following_url":"https://api.github.com/users/thelinuxlich/following{/other_user}","gists_url":"https://api.github.com/users/thelinuxlich/gists{/gist_id}","starred_url":"https://api.github.com/users/thelinuxlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelinuxlich/subscriptions","organizations_url":"https://api.github.com/users/thelinuxlich/orgs","repos_url":"https://api.github.com/users/thelinuxlich/repos","events_url":"https://api.github.com/users/thelinuxlich/events{/privacy}","received_events_url":"https://api.github.com/users/thelinuxlich/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T03:39:59Z","updated_at":"2015-05-05T03:39:59Z","body":"As I'm writing it is still stuck and there are other empty key lists to process"}}