This repository was archived by the owner on Feb 16, 2023. It is now read-only.
Faster way to get checksums? #1224
Unanswered
pseudocoder
asked this question in
Support
Replies: 1 comment
-
An alternative would be to be if I could get the document ID from the checksum in the API (since I can more quickly get the checksums from the file storage). But this also doesn't seem to be an option, e.g. something like this: http://(myurl)/api/documents/?checksum=3df9cdef594a812d64edfbccc9b46072 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a script which checks whether documents have been deleted from source folders.
It does this by getting MD5 checksums of the source documents, and then seeing if the checksum of each Paperless document (using the metadata API) exists in the list. Any document which no longer exists gets tagged as "deleted" and I can then manually process it.
The problem is that calling the metadata API for every document takes a long time - is there a way to get checksums for more than one document at the same time? Or a way of reducing the output from the metadata API, which would probably make it quicker?
Beta Was this translation helpful? Give feedback.
All reactions