From 00a4a675e54a5227050d306d0ad72935e356382b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:36:36 +0800 Subject: [PATCH 1/3] chore(deps-dev): bump rexml from 3.3.3 to 3.3.6 (#2142) Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 7cad15742..359b17844 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -403,7 +403,7 @@ GEM redis-objects (2.0.0.beta) redis (~> 5.0) regexp_parser (2.7.0) - rexml (3.3.3) + rexml (3.3.6) strscan rubocop (1.50.1) json (~> 2.3) From 9316513aad421d80580a75cb99ff1d599ca3eade Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:37:05 +0000 Subject: [PATCH 2/3] chore(deps): bump fugit from 1.8.1 to 1.11.1 (#2140) Bumps [fugit](https://github.com/floraison/fugit) from 1.8.1 to 1.11.1. - [Changelog](https://github.com/floraison/fugit/blob/master/CHANGELOG.md) - [Commits](https://github.com/floraison/fugit/compare/v1.8.1...v1.11.1) --- updated-dependencies: - dependency-name: fugit dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 359b17844..183479832 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -138,7 +138,7 @@ GEM builder (3.2.4) byebug (11.1.3) coderay (1.1.3) - concurrent-ruby (1.3.1) + concurrent-ruby (1.3.4) config (4.1.0) deep_merge (~> 1.2, >= 1.2.1) dry-validation (~> 1.0, >= 1.0.0) @@ -203,7 +203,7 @@ GEM ecdsa_ext (0.5.1) ecdsa (~> 1.2.0) erubi (1.12.0) - et-orbi (1.2.7) + et-orbi (1.2.11) tzinfo eventmachine (1.2.7) eventmachine_httpserver (0.2.1) @@ -224,8 +224,8 @@ GEM ffi (>= 1.0.0) rake fiber-local (1.0.0) - fugit (1.8.1) - et-orbi (~> 1, >= 1.2.7) + fugit (1.11.1) + et-orbi (~> 1, >= 1.2.11) raabro (~> 1.4) globalid (1.2.1) activesupport (>= 6.1) From acfa8ccb5f76f559216e4d02ef28473b22de930a Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Sat, 14 Sep 2024 14:07:11 +0800 Subject: [PATCH 3/3] chore: vacuum will automatically run (#2195) Signed-off-by: Miles Zhang --- lib/scheduler.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/scheduler.rb b/lib/scheduler.rb index 126b30de8..dec18da08 100644 --- a/lib/scheduler.rb +++ b/lib/scheduler.rb @@ -30,13 +30,6 @@ def call_worker(clz) puts "fininsh #{clz.name}" end -# Vacuum database periodically for better performance -s.cron "0 2 * * 1" do - ActiveRecord::Base.connection.execute("SET statement_timeout = 0") - ApplicationRecord.connection.execute "vacuum (verbose, analyze)" - ActiveRecord::Base.connection.execute("RESET statement_timeout") -end - s.cron "0 8 * * *" do call_worker Charts::DailyStatistic end