---
title: "Discussion on \"Why costly is opening and closing of a DB connection?\" | Hashnode"
description: "Discussion on \"Why costly is opening and closing of a DB connection?\". The server maintains several buffers for each client connection. One is used as a communications buffer for exchanging information with the client. Other buffers are maintained per client for reading tables and performing join and sort operations.\nWh..."
url: "https://hashnode.com/posts/why-costly-is-opening-and-closing-of-a-db-connection/6113b95fa607052b724aabeb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why costly is opening and closing of a DB connection?](https://techiedeep.hashnode.dev/why-costly-is-opening-and-closing-of-a-db-connection?utm_source=hashnode&utm_medium=feed)

The server maintains several buffers for each client connection. One is used as a communications buffer for exchanging information with the client. Other buffers are maintained per client for reading tables and performing join and sort operations. Wh...

Aug 11, 2021 · 1 min read · techiedeep.hashnode.dev  
Read the article

## Written by

[Ashwini Maurya](https://hashnode.com/@sysout)

@sysout · India

  
[View profile](https://hashnode.com/@sysout)

Programmer • Lifelong Learner • Positive Thinker

I am a Java developer who loves gym, cricket, read/write technical stuff.

## Responses

Comments are turned off for this post.
