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

ExposeFeedRangeAsClassType #37444

Open
wants to merge 7 commits into
base: users/xinlian/feature/feedRangeAndChangeFeed
Choose a base branch
from

Conversation

xinlian12
Copy link
Member

Second PR for exposingFeedRange in change feed query. In PR #36930, we have exposed feedRange as a str type, but it comes with perf penalty - for each read_feed_ranges response, we would have to always do the base64 encoding, and for each query_items_change_feed using feed_range we have to decode the string.

In this PR, we will expose a FeedRange class type

@xinlian12 xinlian12 requested review from annatisch and a team as code owners September 18, 2024 16:19
@xinlian12
Copy link
Member Author

/azp run python - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

def _to_feed_range_internal(self) -> 'FeedRangeInternal':
pass

def _to_base64_encoded_string(self) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the result be cached - to avoid having to do this multiple times?

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants