mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #4154] [FR] garbage collection for old or no longer used log files and images #1859
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#1859
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MacMeikel on GitHub (Dec 16, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4154
Originally assigned to: @appflowy on GitHub.
Description
It would be useful if there was a "carbage collection" button (or something similar) under "Settings" that could be used to delete all old or no longer needed files of the folder "AppFlowyDataDoNotRename".
Impact
The "carbage collection" function reduces the number of files, which leads to a reduction in folder size. Firstly, this would be an advantage for users who regularly back up their data. Secondly, it would be an advantage for support if there are problems with the data and the entire "AppFlowyDataDoNotRename" folder has to be sent for data recovery.
Additional Context
I have been using Appflowy since v0.0.5.3 and have made many updates (W11, portable/. zip) since then. I have now looked at the files in the folder "AppFlowyDataDoNotRename" and noticed the following: 1) In the folder "AppFlowyDataDoNotRename": there are now many files (129) that start with "AppFlowy-Client.log" and "log". One log file is even 47MB in size! 2) In the folder "collab_db" there are now many files (270) with the extension ".log" and many files that begin with "LOG.old". 3) The "images" folder still contains images that are no longer included in AppFlowy.
@MacMeikel commented on GitHub (Dec 16, 2023):
nathan.fooo likes the idea and would like the issue to be assigned to him
@appflowy commented on GitHub (Dec 20, 2023):
Hello @MacMeikel, I appreciate your suggestion. After considering it, I believe that retaining logs for a period of 5 days should suffice. Regarding the 'LOG.old' file in the collab_db, it is essential to note that this file cannot be deleted as it is utilized by the rocksdb.
@MacMeikel commented on GitHub (Dec 22, 2023):
Hello @appflowy , I can't say how long is reasonable, but I can imagine that even 10 days won't lead to a huge flood of files.
I have 145 'LOG.old' files that were created in the period of 3 months. I do not know the function of "rocksdb", but are all files needed?
And what about the images that are in the 'images' folder but are no longer displayed in AppFlowy because they have been deleted there? Shouldn't these images be automatically deleted from the folder?
As you have seen, I have a total of 3 folders with databases (the folder 'collab_db' and file 'flowy-database.db') in the folder 'AppFlowyDataDoNotRename', of which only one is still in use from my point of view. One folder was created by v0.3.9, which is definitely not used. Couldn't the 'carbage collection' also recognize that these are unused databases and also delete these folders automatically?