Budhapest
Budhapest

Reputation: 601

What are the additional expenses in jdbc in addition to the time taken by the db to run the query?

I wanted to know what are the additional expenses in running a query using jdbc in addition to the actual time taken by the database to run the query and how expensive are they.

Upvotes: 0

Views: 20

Answers (1)

Christian Kuetbach
Christian Kuetbach

Reputation: 16060

  • Some time will be used, to create Object (Strings, etc.) ~some nano seconds
  • Network-Overhead. ~10-50 mili seconds

At startup (before the first query), there will be some time, loading the jdbc driver and creating the connection.

Upvotes: 1

Related Questions