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

Remove Tip isa Batch semantics #58

Merged
merged 1 commit into from
Dec 13, 2018
Merged

Remove Tip isa Batch semantics #58

merged 1 commit into from
Dec 13, 2018

Conversation

bartelink
Copy link
Collaborator

@bartelink bartelink commented Dec 7, 2018

This PR adjusts the stream encoding to facilitate being able to efficiently project using the CosmosDb changefeed based solely on the tracking of document insert operations.

This is a pessimization when compared to the scheme before, where the Tip isa Batch in some cases, but one we're taking for now.

The queries presently explicitly exclude the -1 document; while this ups the RU cost a little, this is generally compensated for by the fact that unfolds will not travel unnecessary.

It should also be noted that the present scheme also sets i to n consistently, and leaves e as [] in the tip branch. This should facilitate treating the Tip as yet another Batch from the point of view of querying where relevant, and also allows us to slot in a projector that can deal with mutations of Tip at a later date.

@bartelink bartelink merged commit 4a0d91a into cosmos Dec 13, 2018
bartelink added a commit that referenced this pull request Dec 14, 2018
bartelink added a commit that referenced this pull request Dec 19, 2018
@bartelink bartelink mentioned this pull request Dec 23, 2018
bartelink added a commit that referenced this pull request Dec 24, 2018
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.

1 participant