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

TCP_NODELAY flag needs to be set on socket for proper performance #2

Open
ibrewster opened this issue Dec 19, 2014 · 0 comments
Open

Comments

@ibrewster
Copy link

As things stand, the TCP_NODELAY flag is not set when the socket is created. For small queries, this is not an issue. However, if doing a large number of queries this significantly slows down the process. As a quick benchmark, without the flag set doing 500 inserts on my database took 125 seconds (250ms/insert). Setting the flag got the total execution time down to about 30 seconds (60ms/insert) - four times faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant