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

Watch filesystem to avoid reindexing #880

Open
TheFirstMonster opened this issue Apr 7, 2024 · 1 comment
Open

Watch filesystem to avoid reindexing #880

TheFirstMonster opened this issue Apr 7, 2024 · 1 comment

Comments

@TheFirstMonster
Copy link

Is your feature request related to a problem? Please describe.
Reindexing large directories can take a long time and this happens everytime a change to the directory occurs

Describe the solution you'd like
Watch the filesystem for changes and commit those to the db to avoid reindexing the next time the directory is opened

Describe alternatives you've considered (optional)
I am guessing this could be possible via the extension api but I didn't look into it yet

@bpatrik
Copy link
Owner

bpatrik commented Apr 13, 2024

This is something that I also want to add myself for a while now.

The design should be something a new job trigger that fires if a folder has changed and runs indexing only on that particular folder.

A further improvement would be to only reindex changed files, not whole folder, but that would be more complex to do.

I wont have time for this, but feel free to send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants