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

Optimize File-Indexer #185

Closed
2 tasks done
Alfagun74 opened this issue Sep 6, 2023 · 1 comment
Closed
2 tasks done

Optimize File-Indexer #185

Alfagun74 opened this issue Sep 6, 2023 · 1 comment
Labels
🔧 feature New feature or request 🎛️ server There are things to do on the server

Comments

@Alfagun74
Copy link
Contributor

Alfagun74 commented Sep 6, 2023

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

  • It retrieves all games located in the /files directory.
  • It adds these games to GameVault.
  • It retrieves all games from the database.
  • It checks their integrity.
  • It caches games using RAWG.
  • It checks for new box art.

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:

  • Instead of using Scheduled Cron Jobs, consider using FileWatcher to index when files change
  • eliminate the need to constantly inspect the 7z files.
@Alfagun74 Alfagun74 changed the title Improve File-Indexer Optimiize File-Indexer Sep 6, 2023
@Alfagun74 Alfagun74 changed the title Optimiize File-Indexer Optimize File-Indexer Sep 6, 2023
@Alfagun74 Alfagun74 added 🔧 feature New feature or request 🎛️ server There are things to do on the server labels Sep 6, 2023
@Alfagun74
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 feature New feature or request 🎛️ server There are things to do on the server
Projects
Archived in project
Development

No branches or pull requests

1 participant