-
Notifications
You must be signed in to change notification settings - Fork 44
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
Is there a way, or a best practice to scan this large amount of files for processing ? #131
Comments
Hi @NguyenHoangMinhkkkk , Why do you need to scan all the files in the first place? Did it work by just watching the directory instead? The |
Thank you! my work is watch the storage-folder to see which file added into it. but if the App stopped unfortunately, files added into folder stacking, the long time stopped, the more files amount. and i have to find a solution to handle these stacked files in the storage-folder when the App started again. normally there are files added into the folder ~20/s mean 1.728.000/day. |
An in-memory database might help?
…On Sun, May 26, 2024 at 2:07 PM Minhnh ***@***.***> wrote:
Thank you!
my work is watch the storage-folder to see which file added into it. but
if the App stopped unfortunately, files added into folder stacking, the
long time stopped, the more files amount. and i have to find a solution to
handle these stacked files in the storage-folder when the App started again.
normally there are files added into the folder ~20/s mean 1.728.000/day.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5EOXF2GJ3EMM5GGBWOFDZEF33JAVCNFSM6AAAAABHEZJ2SOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGA3TSNBRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i'm doing a workaround solution. just split these stacked files into smaller blocks and sync handling them. |
This is my code for getting all files existed in folder on the initial run of my application.
it's works good.
but there is a problem with Large file amount.
if the folder contains 1M or 2M files or more,
-> performance goes down, RAM consuming because this.proccessFile function cannot keep these many paths for processing
is there a way, or a best practice to scan this large amount of files for processing ?
this.proccessFile is a reader function to read content of files.
The text was updated successfully, but these errors were encountered: