Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove --store-message-db-vacuum #883

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Nov 8, 2023

Description

VACUUM, as described in waku-org/nwaku#2165 is an operation that takes a substantial amount of time to be executed depending on the number of rows in the database. Based on the experience so far since the introduction of this flag, It's for the better to execute this command as an operation done via cron or manually, instead of having it be part of the code of waku.

Changes

  • Remove flag
  • Remove DB specific implementation of vacuum command
  • Left the DBSettings struct, since we might end up having to setup some RDBMS specific setting in the future?

@richard-ramos richard-ramos changed the title chore: remove --store-message-db-vacuum chore: remove --store-message-db-vacuum Nov 8, 2023
Copy link
Member

@yakimant yakimant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is https://sqlite.org/pragma.html#pragma_auto_vacuum
But I agree in general - not a part of waku code.

@status-im-auto
Copy link

status-im-auto commented Nov 8, 2023

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9e77a0b #1 2023-11-08 16:30:21 ~3 min ios 📦tgz
✔️ 9e77a0b #1 2023-11-08 16:31:01 ~4 min nix-flake 📄log
✔️ 9e77a0b #1 2023-11-08 16:31:08 ~4 min android 📦tgz
✔️ 9e77a0b #1 2023-11-08 16:33:31 ~7 min linux 📦deb
✔️ 9e77a0b #1 2023-11-08 16:35:09 ~8 min tests 📄log
✔️ 9e77a0b #1 2023-11-08 16:35:12 ~8 min tests 📄log
✔️ 62004cc #2 2023-11-09 20:07:33 ~1 min nix-flake 📄log
✔️ 62004cc #2 2023-11-09 20:08:02 ~2 min linux 📦deb
✔️ 62004cc #2 2023-11-09 20:09:11 ~3 min tests 📄log
✔️ 62004cc #2 2023-11-09 20:09:30 ~3 min tests 📄log
✔️ 62004cc #2 2023-11-09 20:10:03 ~4 min android 📦tgz
✔️ 62004cc #2 2023-11-09 20:10:30 ~4 min ios 📦tgz

@harsh-98
Copy link
Contributor

harsh-98 commented Nov 9, 2023

lgtm.

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richard-ramos richard-ramos merged commit ff94b1f into master Nov 9, 2023
10 of 11 checks passed
@richard-ramos richard-ramos deleted the chore/remove-vacuum branch November 9, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants