Skip to content

Commit

Permalink
刷新新的物化视图
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 25, 2025
1 parent 69c70fd commit 75cffd9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ public void cronRefreshMaterializedViews() {
refreshSnapshots.executeUpdate();
var refreshAggregated = entityManager.createNativeQuery("REFRESH MATERIALIZED VIEW overdownload_aggregated_uploads;");
refreshAggregated.executeUpdate();
var refreshConcurrentPerIp = entityManager.createNativeQuery("REFRESH MATERIALIZED VIEW grafana_analyse_concurrent_torrent_activities_cidr;");
refreshConcurrentPerIp.executeUpdate();
log.info("Refreshed materialized views for overdownload analyse, tooked {} ms", System.currentTimeMillis() - startAt);
}

Expand Down

0 comments on commit 75cffd9

Please sign in to comment.