zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

[Feature Request] image or attechment files storage at outside #2210

Closed leeyaunlong closed 5 months ago

leeyaunlong commented 3 years ago

I saved over 2000 web pages with trilium web clip tool at last year. But trilium db size over 1GB. I think the db size will over 3GB at the next year.

I checked pages, they are include many images. The most images just for web page style, they are unuseful for real content. And the unuseful images over 50% db space.

If the trilium has a way save the webpage attechment files(image, etc.) to local folder. The trilium db will keep the size. Then we can use some sync tool to sync the attechements to other devices.

sigaloid commented 3 years ago

If you want to make the images smaller, try changing the JPEG quality in settings: image (Don't think this applies retroactively, though)

leeyaunlong commented 3 years ago

If you want to make the images smaller, try changing the JPEG quality in settings: image (Don't think this applies retroactively, though)

I know set the image compression to shrink the image size.

The point is one page include many unuseful images.

for a case :

In the disscus page, many reply message will include user's avator, emoji icon or other signature image. I just want to save the important main disscus content. Don't save the user relation misc images.

I knew , some chrome plugins can format or remove some images. But we need focus read and save , not focus on format page, remove garbage.

If the trilium save the webpage relation images files in local storage , we need not care trilum db size.

PS. when the trilum db size over 1GB, I found the startup trilium need over 1-2 mins. I also try to remove all images in same db, the trilimu startup just 5 sec.

abitofevrything commented 3 years ago

Trilium has no way to know which images are essential to the web page, so you would need to do this manually anyways.

zadam commented 3 years ago

Hi,

PS. when the trilum db size over 1GB, I found the startup trilium need over 1-2 mins. I also try to remove all images in same db, the trilimu startup just 5 sec.

This seems to be the main problem, it shouldn't be anywhere as slow. Could you provide anonymized database and logs so that I could debug this issue? You can send them to zadam.apps@gmail.com

leeyaunlong commented 3 years ago

Hi, It seems cause by auto backup : backup-daily.db.

zadam commented 3 years ago

Hi, that makes sense - (daily) backup will need to copy the whole database. I added the option to disable backups which should help in this case.

leeyaunlong commented 3 years ago

Hi, that makes sense - (daily) backup will need to copy the whole database. I added the option to disable backups which should help in this case.

Can you add the backup option at 0.47.x? The 0.48b1 is not stable , we daliy note still use 0.47.8.

zadam commented 3 years ago

@leeyaunlong do you have some issues with 0.48.1-beta or is it just the "beta" label?

So far there haven't been serious bug reports so I plan to release a stable 0.48 soon.

meichthys commented 5 months ago

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: https://github.com/TriliumNext/Notes/issues/136