share / share/sharedb

insertMany support ?

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

Nobody has claimed this yet.

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

Description

Hi. Have to insert (for example) 1000 of documents via sharedb-mongo driver (this documents have to be on top of sharedb to have realtime sync). How can we do this with one operation (like insertMany in mongo) instead of 1000 insertOne operations?
I took a loock at this method in sharedb-mongo
ShareDbMongo.prototype._writeOp

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

Start with ShareDbMongo.prototype._writeOp in the sharedb-mongo driver and trace how individual insertOne operations are handled. Determine the API and persistence behavior needed for inserting many documents in one operation while keeping them in Sharedb for realtime synchronization; done means the requested bulk operation is supported without requiring 1000 separate inserts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.