issue: https://github.com/redis/redis-py/issues/3090
- ๋ฌธ์ : redis ์๋ฒ์ ์ฐ๊ฒฐํ ๋ ํ๋์ฉ ๋ช
๋ น์ด ์ ์กํ์ฌ ์ฐ๊ฒฐ ์๋๊ฐ ๋๋๋ ๋ฒ๊ทธ๊ฐ ์์
- ์ ์ ์ฌํญ: ํธ๋์ญ์
์ ์ฌ์ฉํ์ฌ ์๋ ๋ช
๋ น์ด๋ค์ ํ๋ ์ฉ ๋ณด๋ด์ง ์๊ณ ํ๋์ ํธ๋์ญ์
์ผ๋ก ๋ฌถ์ด๋ณด๋ด ์ฐ๊ฒฐ ์๋๋ฅผ ๊ฐ์ ๋ช
๋ น์ด๋ค์ ํ ๋ฒ์ ๋ณด๋ด๋ ๋ฐฉ๋ฒ์ผ๋ก ์ฐ๊ฒฐ ์๋๋ฅผ ๊ฐ์ ํ๊ณ ์ ํจ.
AUTH
, SELECT
, HELLO
, CLIENT SETINFO
์ฝ๋ ์์ ํ๋ฉด์ ํ์ํ ๋ด์ฉ ๊ธฐ๋กํ๊ธฐ!
- RESP ํ๋กํ ์ฝ์ด๋? ํ์ดํ๋ผ์ธ?
- parser๋?
- pytest
- redis 6๋ฒ์ ์๋์์ AUTH ๋ช
๋ น์ด ํน์ด์ฌํญ
- connection ์ฌ์๋ ๋ก์ง
- MULTI ๋ช
๋ น์ด๋ก ๋ช
๋ น์ด๋ฅผ ํ ๋ฒ์ ์๋ฉด ์ ๋ง ์๊ฐ์ด ์ค์ด๋ค๊น? ํ
์คํธํด๋ณด์.
- ํตํฉํ
์คํธ-์ฌ์ฐ๊ฒฐ ์์ธ ์ฒ๋ฆฌ ๋ก์ง ์์ ์
- ํตํฉํ
์คํธ-์ฌ์ฐ๊ฒฐ ์์ธ ์ฒ๋ฆฌ ๋ก์ง ์์ ํ
- MULTI์ EXEC ๋ง๊ณ pipeline์ ์จ๋ณด์ - ๋น๊ต
- ์ฌ์ฐ๊ฒฐ ํ
์คํธ ์คํจ ๋๋ฒ๊น
Description of change
Please provide a description of the change here.
This PR optimizes the on_connect method in redis-py by reducing the number of command responses during the connection process. Key improvements include:
- Utilized
MULTI
and EXEC
commands to batch process multiple commands, enhancing response speed and efficiency.
- Streamlined handling of the HELLO command with authentication arguments for Redis 6.0.0 and above.