|
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);
