You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Methods like ReplicaStatement.execute(String, *** ) (listed below), are run on MAIN, as they're treated as write operations.
They can be used by application to either pass WRITE or READ SQL query.
Currently, all execute()*** invocations are treated as write operations.
For applications that use execute()for READ operations this won't move those queries to REPLICA.
Methods like
ReplicaStatement.execute(String, *** )
(listed below), are run on MAIN, as they're treated as write operations.They can be used by application to either pass WRITE or READ SQL query.
Currently, all execute()*** invocations are treated as write operations.
For applications that use
execute()
for READ operations this won't move those queries to REPLICA.Example methods:
connection.prepareStatement(SIMPLE_QUERY).execute();
connection.prepareStatement(SIMPLE_QUERY).execute(SIMPLE_QUERY);
connection.prepareStatement(SIMPLE_QUERY).execute(SIMPLE_QUERY, Statement.RETURN_GENERATED_KEYS);
connection.prepareStatement(SIMPLE_QUERY).execute(SIMPLE_QUERY, new String[]{"test"});
connection.prepareStatement(SIMPLE_QUERY).execute(SIMPLE_QUERY, new int[]{123});
connection.prepareStatement(SIMPLE_QUERY, new int[]{123}).execute(SIMPLE_QUERY, new int[]{123});
The text was updated successfully, but these errors were encountered: