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

Testing Distributed Loader #48

Merged
merged 11 commits into from
Mar 3, 2016
Merged

Testing Distributed Loader #48

merged 11 commits into from
Mar 3, 2016

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Mar 3, 2016

Don't assign any uids while running distributed loader.
Store any errors encountered while running loader pipeline, and send them back.
Run gentlyMerge via goroutines -- they keep the memory usage in check.
Limit the number of goroutines run for gentlyMerge.
Randomly pick keys from dirtyMap; otherwise, we'll always pick the same keys for merging.
Decrease memory allocations via various optimizations.

Review on Reviewable

…so our memory monitor can call aggressivelyEvict in time. Also, with this change, the memory growth is a heck of a lot more controlled.
…nd avoid calling rdf.GetUid. Plus, other changes across the entire code base to accommodate this.
… is found, stop processing immediately. Switch the system to sync.WaitGroup completely, instead of an error channel. Log fatal on error in loader and uidassigner
…lower to run these goroutines, but they keep the memory usage in check.
@ashwin95r
Copy link
Contributor

Reviewed 12 of 12 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@ashwin95r
Copy link
Contributor

:lgtm:


Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

manishrjain added a commit that referenced this pull request Mar 3, 2016
Testing Distributed Loader
@manishrjain manishrjain merged commit 938e05f into master Mar 3, 2016
arijitAD pushed a commit that referenced this pull request Oct 15, 2020
shivaji-dgraph pushed a commit that referenced this pull request Mar 12, 2024
…ch based on vector indexes (#48)

- [Float] data type with an @Embedding directive in GraphQL is mapped to
"VFLOAT" data type in dgraph
- @Embedding directive is allowed only for [Float] data type
- Add querySimilar<Type> query that performs similarity search based on
HNSW (vector) indexes for types with fields having @Embedding directive
- querySimilar<Type> accepts 3 arguments

1. id - unique id for the object to run similarity search on.
2. <predicate> - An enum of embedding predicates defined in the type to
base the search on
3. <topK> - number of nearest neighbors to return
harshil-goel pushed a commit that referenced this pull request Mar 12, 2024
…ch based on vector indexes (#48)

- [Float] data type with an @Embedding directive in GraphQL is mapped to
"VFLOAT" data type in dgraph
- @Embedding directive is allowed only for [Float] data type
- Add querySimilar<Type> query that performs similarity search based on
HNSW (vector) indexes for types with fields having @Embedding directive
- querySimilar<Type> accepts 3 arguments

1. id - unique id for the object to run similarity search on.
2. <predicate> - An enum of embedding predicates defined in the type to
base the search on
3. <topK> - number of nearest neighbors to return
harshil-goel pushed a commit that referenced this pull request Apr 17, 2024
…ch based on vector indexes (#48)

- [Float] data type with an @Embedding directive in GraphQL is mapped to
"VFLOAT" data type in dgraph
- @Embedding directive is allowed only for [Float] data type
- Add querySimilar<Type> query that performs similarity search based on
HNSW (vector) indexes for types with fields having @Embedding directive
- querySimilar<Type> accepts 3 arguments

1. id - unique id for the object to run similarity search on.
2. <predicate> - An enum of embedding predicates defined in the type to
base the search on
3. <topK> - number of nearest neighbors to return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants