Skip to content

opt(Alpha): Load schema and types using Stream framework #7938

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

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jul 2, 2021

For big datasets, we're seeing a big slowdown due to loading schema and types serially using a single iterator. Using the Stream framework, makes this metadata loading step much faster, resulting in a much faster Alpha initialization.


This change is Reviewable

@manishrjain manishrjain requested a review from danielmai as a code owner July 2, 2021 07:22
@manishrjain manishrjain changed the base branch from master to release/v20.11-slash July 2, 2021 07:22
@github-actions github-actions bot added the area/schema Issues related to the schema language and capabilities. label Jul 2, 2021
Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

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

:lgtm: Just a minor comment. Rest looks good.

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @danielmai and @manishrjain)


schema/schema.go, line 521 at r2 (raw file):

			return nil, err
		}
		glog.Fatalf("Invalid load type")

return statement after fatal?

Copy link
Contributor Author

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @danielmai and @NamanJain8)


schema/schema.go, line 521 at r2 (raw file):

Previously, NamanJain8 (Naman Jain) wrote…

return statement after fatal?

Yeah, otherwise, Go doesn't compile this.

@manishrjain manishrjain merged commit d03d5ad into release/v20.11-slash Jul 2, 2021
@manishrjain manishrjain deleted the mrjn/v20.11-speedup branch July 2, 2021 07:57
NamanJain8 pushed a commit that referenced this pull request Jul 2, 2021
For big datasets, we're seeing a big slowdown due to loading schema and types serially using a single iterator. Using the Stream framework, makes this metadata loading step much faster, resulting in a much faster Alpha initialization.

(cherry picked from commit d03d5ad)
NamanJain8 pushed a commit that referenced this pull request Jul 2, 2021
For big datasets, we're seeing a big slowdown due to loading schema and types serially using a single iterator. Using the Stream framework, makes this metadata loading step much faster, resulting in a much faster Alpha initialization.

(cherry picked from commit d03d5ad)
NamanJain8 added a commit that referenced this pull request Jul 2, 2021
For big datasets, we're seeing a big slowdown due to loading schema and types serially using a single iterator. Using the Stream framework, makes this metadata loading step much faster, resulting in a much faster Alpha initialization.

(cherry picked from commit d03d5ad)

Co-authored-by: Manish R Jain <manish@dgraph.io>
NamanJain8 added a commit that referenced this pull request Jul 2, 2021
For big datasets, we're seeing a big slowdown due to loading schema and types serially using a single iterator. Using the Stream framework, makes this metadata loading step much faster, resulting in a much faster Alpha initialization.

(cherry picked from commit d03d5ad)

Co-authored-by: Manish R Jain <manish@dgraph.io>
mangalaman93 pushed a commit that referenced this pull request Jan 4, 2023
)

For big datasets, we're seeing a big slowdown due to loading schema and
types serially using a single iterator. Using the Stream framework, makes
this metadata loading step much faster, resulting in a much faster Alpha
initialization.

(cherry picked from commit d03d5ad)
mangalaman93 pushed a commit that referenced this pull request Jan 17, 2023
)

For big datasets, we're seeing a big slowdown due to loading schema and
types serially using a single iterator. Using the Stream framework, makes
this metadata loading step much faster, resulting in a much faster Alpha
initialization.

(cherry picked from commit d03d5ad)
mangalaman93 pushed a commit that referenced this pull request Jan 17, 2023
)

For big datasets, we're seeing a big slowdown due to loading schema and
types serially using a single iterator. Using the Stream framework, makes
this metadata loading step much faster, resulting in a much faster Alpha
initialization.

(cherry picked from commit d03d5ad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Issues related to the schema language and capabilities.
Development

Successfully merging this pull request may close these issues.

2 participants