Skip to content

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

@ibrewster

Description

@ibrewster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions