Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework gql replication pull to write docs in single db operation #2524

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

corinv
Copy link
Contributor

@corinv corinv commented Sep 17, 2020

This PR contains:

An optimization

Describe the problem you have without this PR

(as discussed on gitter)

GQL replication was acting slower than expected - on inspection saw there was a bulkDocs operation per doc, per batch but this can be reduced to a single bulkDocs operation per batch, resulting in faster replication.

Existing tests are passing. Let me know if the PR needs anything else.

@pubkey
Copy link
Owner

pubkey commented Sep 17, 2020

Code looks good. I restarted the react-native CI test.

@pubkey pubkey merged commit a07b7ee into pubkey:master Sep 18, 2020
pubkey added a commit that referenced this pull request Sep 18, 2020
@pubkey
Copy link
Owner

pubkey commented Sep 18, 2020

Thank you very much. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants