share / share/sharedb

Create large number of documents with similar contents

Open
#172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
6.5k
Forks
456
Avg merge
1d 5h
Merged PRs (30d)
5

Description

Hi all. ShareDB is amazing, and we're using it very extensively in a platform for collaborative learning. We often need to generate larger numbers of documents with similar contents, for example 200 documents all containing an empty object (for 200 student groups). Sometimes there will be prefilled content.

Initially we were subscribing to a document, and then creating when the document was loaded. I then realized that if we can guarantee that the document does not exist, we can directly create it, without first subscribing to it. This is faster, but it still takes time to issue all of the document creation requests. Is there a way of mass-creating a list of documents with similar content, or batching ops to create a bunch of documents with different contents? (We can be sure that these documents don't already exist).

thank you very much

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the document-creation request path and current operation batching behavior; done means establishing a supported way to create many similar or differently populated documents efficiently, with coverage for the requested cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.