@Deprecated
  private void addTxnToMinHistoryLevel(JdbcTemplate jdbcTemplate, int batchSize, List<Long> txnIds, long minOpenTxnId) {
    if (!TxnHandler.ConfVars.useMinHistoryLevel()) {
      return;
    }
    String sql = "INSERT INTO \"MIN_HISTORY_LEVEL\" (\"MHL_TXNID\", \"MHL_MIN_OPEN_TXNID\") VALUES(?, ?)";
    LOG.debug("Going to execute insert batch: <{}>", sql);

    jdbcTemplate.batchUpdate(sql, txnIds, batchSize, (ps, argument) -> {
      ps.setLong(1, argument);
      ps.setLong(2, minOpenTxnId);
    });
    
    LOG.info("Added entries to MIN_HISTORY_LEVEL for current txns: ({}) with min_open_txn: {}", txnIds, minOpenTxnId);
  }
Add min history level entry for each generated txn record
@param jdbcTemplate {@link NamedParameterJdbcTemplate} to use for command execution
@param txnIds new transaction ids
@deprecated Remove this method when min_history_level table is dropped
@throws SQLException ex
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/functions/OpenTxnsFunction.java