Phalcode / gamevault-backend

Backend for the self-hosted gaming platform for drm-free games
https://gamevau.lt
Other
161 stars 13 forks source link

Optimize File-Indexer #185

Closed Alfagun74 closed 9 months ago

Alfagun74 commented 1 year ago

The file indexer currently runs every five minutes and performs the following tasks:

When you have a library of 600 games, running this process can be quite time-consuming. It takes approximately 20 seconds for the indexing to complete.

To optimize this process and reduce the time required, here are some suggested improvements:

Alfagun74 commented 9 months ago

Implemented Logic with a debounce timer of 5 seconds to not escalate things when a bunch of files get moved/deleted/added