-
Notifications
You must be signed in to change notification settings - Fork 138
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
Document improvements: optimization, refactoring #6240
Draft
snej
wants to merge
69
commits into
main
Choose a base branch
from
optimize-syncdata
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- JSONExtract now uses a callback to delegate the logic about which keys are special/reserved. - implemented JSONExtract for CE - DocumentRevision calls JSONExtract, handles special properties.
# Conflicts: # rest/replicatortest/replicator_test.go
Body changed to UnmarshalBody. Removed some usages of both methods, working with JSON data instead.
- RevisionCache.GetRevision no longer returns a Body - Removed body field from revCacheValue struct
# Conflicts: # rest/blip_api_delta_sync_test.go # rest/replicatortest/replicator_test.go # rest/replicatortest/replicator_test_helper.go # rest/user_api_test.go # rest/utilities_testing.go
# Conflicts: # db/access_test.go # db/attachment_test.go # db/crud.go # db/crud_test.go # db/database_test.go # db/revision_cache_test.go
* CBG-2894: Reject user auth when channel threshold is over 500 in serverless mode * fix panic where authetciator was needed and it wasn't availible * linter issue * linter issue again * remove extra methods off interface * pass user into function * rebase * ensure 500 code is retruned for http error added * updates based off comments * fix panic * updates based off comments * updates based off dicussion yesterday * lint error * updates based of comments
* Add stats for transferred of bytes data ReplicationBytesReceived and ReplicationBytesSent * Stats are updated when a BlipSyncContext exits and at a threshold set by DatabaseContextOptions.BlipStatsReportingInterval (set to thirty seconds arbitrarily to see perf impact).
# Conflicts: # db/crud.go
Channels, Access, RoleAccess, Attachments, ChannelSet, ChannelSetHistory are now not unmarshaled until accessed.
- Missing licenses - An unnecessary assignment in util_ce.go - DocumentRevision should format expiration timestamps in UTC - Removed an unnecessary declaration from NameSet - Also moved NameSet to base package
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CBG-0000
Describe your PR here...
db
into newdocuments
packagePre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Dependencies (if applicable)
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/000/