nextcloud / nextcloud/previewgenerator
Batch generation
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Feature request
Which Nextcloud Version are you currently using: (see administration page)
Nextcloud Hub 10 (31.0.6)
Is your feature request related to a problem? Please describe.
I am using Nextcloud for a private cloud with a low resource server; the preview generation for the whole filesystem would actually saturate the machine resources
Describe the solution you'd like
I would propose to add a parameter to limit the amount of previews generated for each iteration, like
preview:generate-all --num=5000 to elaborate at most 5000 files
Describe alternatives you've considered
Halting the generation manually after some minutes
Additional context
none
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the preview:generate-all command and reading how it iterates over files and generates previews. Add support for limiting each invocation to the requested number of files, then verify that --num=5000 stops after at most 5000 files while preserving existing behavior without the option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100