title: fastest way to delete thousands of rows from postgres db tables  using java
body: <p>fastest way to delete thousands of rows from  postgres db tables using java.Presently i am using the following code snippet:</p>
  
  <pre><code>query = "DELETE FROM NODE WHERE SEQUENCE_NO = " + sequenceNo;
              insertOrDelete(query);
  
  
  
  
  insertOrDelete(String query){
      statement = createStatement();
      numRowUpdated = statement.executeUpdate(query);
      closeStatement(statement);
              }
  </code></pre>