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

Partitioning of screenshot dir for large projects #2

Open
pbvahlst opened this issue Jan 30, 2020 · 0 comments
Open

Partitioning of screenshot dir for large projects #2

pbvahlst opened this issue Jan 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@pbvahlst
Copy link
Contributor

Partitioning of screenshot dir. Only if necessary.

Will only work if id's are used instead of url-filenames.

  • Use each letter in the id-alphabet as name for a folder (36 letters).
  • calculate the depth e.g.
    calculateDirPartitionDepth(maxFilesPrDir, totalFiles, alphabetSize) {
      let capacity = maxFilePrDir;
      let partitionDepth = 0;
      while (capacity < totalFiles) {
         capacity *= alphabetSize;
        partitionDepth++;
      }

      return partitionDepth;
    }
  • Create the dirs ad hoc (not in advance)
  • Make a config.json which saves the partitionDepth in the project path, so we
    can use this for resumes (passing in a folder with existing data)
@pbvahlst pbvahlst added the enhancement New feature or request label Jan 30, 2020
@pbvahlst pbvahlst reopened this Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant