Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Document List is serial and slow for large document sets #6

Closed
stgarf opened this issue Mar 14, 2019 · 0 comments · Fixed by #9
Closed

Document List is serial and slow for large document sets #6

stgarf opened this issue Mar 14, 2019 · 0 comments · Fixed by #9
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@stgarf
Copy link
Owner

stgarf commented Mar 14, 2019

Describe the bug
If you run a paperless-cli documents list on a large Paperless instance this will cause a serial lookup of the correspondent and each tag on that document because of what the Paperless API returns -- a link to the tag/correspondent and not it's name. This lookup should be optimized.

To Reproduce
Steps to reproduce the behavior:

  1. paperless-cli documents list on a large paperless instance
  2. You'll wait 2-3m for a response in the experience of my dataset.

Expected behavior
Implement some optimization so that this is completed faster.

Screenshots
n/a

Desktop (please complete the following information):

  • Version: 0.6.1
@stgarf stgarf added bug Something isn't working enhancement New feature or request labels Mar 14, 2019
@stgarf stgarf self-assigned this Mar 14, 2019
@stgarf stgarf added this to To do in Features and Bugs via automation Mar 14, 2019
@stgarf stgarf added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 21, 2019
@stgarf stgarf closed this as completed in #9 Mar 21, 2019
Features and Bugs automation moved this from To do to Done Mar 21, 2019
stgarf added a commit that referenced this issue Mar 21, 2019
* Added two map[int]string lookup tables to resolve correspondent/tag names and some helper functions: mapCorrespondents, mapTags, and urlToID to help fix #6.
@stgarf stgarf removed good first issue Good for newcomers help wanted Extra attention is needed labels Apr 13, 2020
stgarf added a commit that referenced this issue Jul 14, 2020
* Added two map[int]string lookup tables to resolve correspondent/tag names and some helper functions: mapCorrespondents, mapTags, and urlToID to help fix #6.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant