Create large number of documents with similar contents
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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