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

CouchDB provider: if data is binary and large, store as a CouchDB attachment #81

Open
DRK3 opened this issue Mar 5, 2021 · 0 comments

Comments

@DRK3
Copy link
Contributor

DRK3 commented Mar 5, 2021

CouchDB has something called "attachments" that could be used to store binary data in a more efficient form. We should make it so that if the binary data is greater than some size, then it gets stored as an attachment. When retrieving documents from CouchDB, we must then check to see if they have an attachment. If they do, then we return the attachment data. Otherwise, we look at the usual "value" field.

@DRK3 DRK3 changed the title CouchDB provider: if data isn't JSON, store as attachment CouchDB provider: if data isn't JSON, store as attachment? Mar 8, 2021
@DRK3 DRK3 changed the title CouchDB provider: if data isn't JSON, store as attachment? CouchDB provider: if data is binary and large, store as a CouchDB attachment Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant