apache / apache/couchdb

Streaming API for attachment data

Open
#1,540 5 comments 7 reactions 0 assignees View on GitHub
api performance roadmap
Dominant language
Erlang
Stars
7k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
9

Description

@nolanlawson:
> It would be nice to have a more efficient method of replicating attachments to/from Couch. Currently we use multipart for uploads and GET /db/doc/att for downloading (see pouchdb/pouchdb#3964 (comment) for why). It'd be nice to be able to stream and restart attachment requests.
>
>Emerging browser spec for background uploads/downloads: https://github.com/WICG/background-fetch

/cc @daleharvey @janl

Contributor guide

Open the contributing guide

Research direction

Start by reviewing CouchDB's existing multipart attachment upload and GET /db/doc/att download paths, then read the linked background-fetch proposal and the referenced PouchDB discussion. Done would require a defined streaming attachment API that supports restarting requests, but the issue does not identify implementation files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
api, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.