Improve file listing for b2 backend #654
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Both the b2_list_file_names and b2_list_file_versions api calls may return up to 10k results.
![image](https://private-user-images.githubusercontent.com/1352848/267341410-9e0da96c-0e72-4f37-b107-8de7bd80e9c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzE0NTEsIm5iZiI6MTczODkzMTE1MSwicGF0aCI6Ii8xMzUyODQ4LzI2NzM0MTQxMC05ZTBkYTk2Yy0wZTcyLTRmMzctYjEwNy04ZGU3YmQ4MGU5YzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTIyNTUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmQ3MWRiMmZjM2RmNTVhNjBiM2QxMTgyODk3MWYyNWNjZGMyOWUwMThhOGIxNjRjNTMyNTMzODg3N2Q4YjU0MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.J3wpdTh4OEG6sM7AsKUqmSLLl9bp3sQpL9AiNk4et7s)
By increasing the maxFileCount parameter this PR reduces the time it takes to prune/check/list a repository.
Without this PR
duplicacy list -r 2 -files
takes so long that I never bothered to wait until it produces output. With this PR the file listing for that command produces output almost immediately.