title: Is there a way to measure time taken for SQL query to execute without fetching the results in Java?
body: <p>So I am writing a DB performance test tool which have to measure time it takes for some queries to execute, however it works with Big Data and these queries generate millions of rows each and therefore generating huge network traffic between my machine and the DB Host. My question is how to run the queries from java application where I know when did the query finished its execution but without fetching the resultset?</p>
  
  <p>does the following Piece of code exclude all the rows travelling through the network?</p>
  
  <pre><code>        //start recording time
       Bool someName = statement.execute(sqlStatement);
          //stop recording time
  </code></pre>