Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is about pipelining? #329

Open
Eugene-Usachev opened this issue Aug 16, 2023 · 7 comments
Open

What is about pipelining? #329

Eugene-Usachev opened this issue Aug 16, 2023 · 7 comments
Labels
1sp documentation Improvements or additions to documentation teamE

Comments

@Eugene-Usachev
Copy link

I benchmarked Tarantool and Redis. Tarantool overtakes Redis only before using pipelining. With pipelining, Redis becomes more than 3 times faster than Tarantool. Is it possible to use pipelining with Tarantool?

@R-omk
Copy link

R-omk commented Aug 16, 2023

#327 (comment)

@Eugene-Usachev
Copy link
Author

R-omk, I know it. But I need benchmark DBMS with network, because I will use DBMS with it. To squeeze more performance out of the DBMS, I need to reduce the load on the network, the ideal solution is pipelining. I read the connector documentation and couldn't find any mention of pipelining, which makes me opt for Redis.

@R-omk
Copy link

R-omk commented Aug 16, 2023

The tarantool is not the redis, it is much much faster, if the queries are independent they need to be executed in parallel, if they are dependent then write stored procedures on the server side and call func from client.

@R-omk
Copy link

R-omk commented Aug 16, 2023

what is called "pipeline" in redis works automatically out of the box in this driver . this is a multiplexing of any requests, you never have to wait for the result of the previous one in order to send the next one. Please look at benchmarks test.

@oleg-jukovec
Copy link
Collaborator

@R-omk thank you. @Eugene-Usachev you should execute requests in parallel for the best performance. The connector supports concurrent request execution by itself, see opts.Concurrency .

I think it's a good idea to write a parallel request execution example that we can refer to.

@oleg-jukovec oleg-jukovec added documentation Improvements or additions to documentation 1sp labels Aug 17, 2023
@Eugene-Usachev
Copy link
Author

@R-omk thank you for your time. I close the issue.

@oleg-jukovec
Copy link
Collaborator

I think it's a good idea to write a parallel request execution example that we can refer to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1sp documentation Improvements or additions to documentation teamE
Projects
None yet
Development

No branches or pull requests

3 participants