Sep 24

The Connection class has a setReadOnly() that hints to the database that the connection is read only. This will enable any possible database optimisation.

   Connection connection = DriverManager.getConnection(
        connectionString, properties);
   connection.setReadOnly(true);

written by objects \\ tags: ,


Leave a Reply

You must be logged in to post a comment.