Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,12 @@ public Scn process(Scn startScn, Scn endScn) throws SQLException, InterruptedExc
statement.setString(2, endScn.toString());

Instant queryStart = Instant.now();
LOGGER.debug("Executing LogMiner query: \n{}\n with params {} and {}", getQueryString(), startScn.toString(), endScn.toString());
try (ResultSet resultSet = statement.executeQuery()) {
metrics.setLastDurationOfFetchQuery(Duration.between(queryStart, Instant.now()));
var queryDuration = Duration.between(queryStart, Instant.now());

LOGGER.debug("Executed LogMiner query to fetch results in {} seconds", queryDuration.getSeconds());
metrics.setLastDurationOfFetchQuery(queryDuration);

Instant startProcessTime = Instant.now();
processResults(this.partition, resultSet);
Expand Down Expand Up @@ -466,7 +470,12 @@ protected Scn calculateNewStartScn(Scn endScn, Scn maxCommittedScn) throws Inter
protected void processResults(OraclePartition partition, ResultSet resultSet) throws SQLException, InterruptedException {
while (context.isRunning() && hasNextWithMetricsUpdate(resultSet)) {
counters.rows++;
processRow(partition, LogMinerEventRow.fromResultSet(resultSet, getConfig().getCatalogName(), isTrxIdRawValue()));

var row = LogMinerEventRow.fromResultSet(resultSet, getConfig().getCatalogName(), isTrxIdRawValue());
Instant queryStart = Instant.now();
processRow(partition, row);
LOGGER.debug("Processing time for row with SCN {}, from table '{}' for {}ms", row.getScn(), row.getTableName(),
Duration.between(queryStart, Instant.now()).toMillis());
}
}

Expand Down
Loading