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

Remote File Index Creation #113

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Remote File Index Creation #113

wants to merge 3 commits into from

Conversation

thilokru
Copy link
Collaborator

Motivation

We store our measurements on a server, which makes backups and access to the files easier. However, indexing the files via SMB is slow. If the index were to be created periodically on the server, and the clients would access this index, all measurements would be available to everyone. This is a nice addition to the qviewkit-URL feature in Dokuwiki-Autodoc.

Implementation

Besides some minor bug fixes, this pull request adds a secondary cache location in the data directory. If the config enables loading from this location, and this cache is loadable, then it will be used instead of a local cache.

Also, a new entry point (qkit-fid-index) is introduced to allow creation of the index from the command line. This could be used in the future for other setup tasks.

Discussion Questions

  • This change affects a core component of qkit (qkit.fid) and must be discussed.
  • The command line utility qkit-fid-index redirects its log directory to be within the datadirectory, such that the cache files become available. This is a bit hacky, but the simplest solution. Is this sufficient?
  • The locking mechanism from qkit.fid.get_last was missing. I think this is a bug. Were there use cases for this omission?

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

Successfully merging this pull request may close these issues.

None yet

1 participant