Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dgraph
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
dgraph
Commits
f7b1c932
Commit
f7b1c932
authored
9 years ago
by
Manish R Jain
Browse files
Options
Downloads
Patches
Plain Diff
Note about freebase film data in dgraph format
parent
c02a685d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+7
-1
7 additions, 1 deletion
README.md
with
8 additions
and
2 deletions
Dockerfile
+
1
−
1
View file @
f7b1c932
...
...
@@ -21,7 +21,7 @@ ENV LD_LIBRARY_PATH "/usr/local/lib"
# Install DGraph and update dependencies to right versions.
RUN
go get
-v
github.com/robfig/glock
&&
\
go get
-v
github.com/dgraph-io/dgraph/...
&&
\
glock
sync
github.com/dgraph-io/dgraph
&&
echo
"v0.1.
1
"
glock
sync
github.com/dgraph-io/dgraph
&&
echo
"v0.1.
2
"
# Run some tests, don't build an image if we're failing tests.
RUN
go
test
github.com/dgraph-io/dgraph/...
...
...
This diff is collapsed.
Click to expand it.
README.md
+
7
−
1
View file @
f7b1c932
...
...
@@ -11,6 +11,7 @@ $ docker run -t -i -v /somedir:/dgraph -v $HOME/go/src/github.com/dgraph-io/benc
```
Once into the dgraph container, you can now load your data. Also see
[
Data Loading
](
#data-loading
)
below.
You can also skip this step, if you just want to play with DGraph. See
[
Use Freebase Film data
](
#use-freebase-film-data
)
.
```
$ loader --postings /dgraph/p --rdfgzips /data/rdf-data.gzip --max_ram_mb 3000
```
...
...
@@ -69,6 +70,11 @@ go test github.com/dgraph-io/dgraph/...
# Usage
## Data Loading
### Use Freebase Film data
If you just want to play with the system, you can
[
download this postings directory
](
https://www.dropbox.com/s/o0lghhd6u7e9eiq/dgraph-p.tar.gz?dl=0
)
,
unzip/untar it and skip right to
[
Querying
](
#querying
)
. This directory contains all the Freebase film data in DGraph posting lists format.
### Bulk Loading
Let's load up data first. If you have RDF data, you can use that.
Or, there's
[
Freebase film rdf data here
](
https://github.com/dgraph-io/benchmarks
)
.
...
...
@@ -86,7 +92,7 @@ $ cd $GOPATH/src/github.com/dgraph-io/dgraph/server/loader
$ go build . && ./loader --rdfgzips=path_of_benchmarks_dir/data/rdf-films.gz,path_of_benchmarks_dir/data/names.gz --postings DIRPATH/p
```
### Loading performance
###
#
Loading performance
Loader is memory bound. Every mutation loads a posting list in memory, where mutations
are applied in layers above posting lists.
While loader doesn't write to disk every time a mutation happens, it does periodically
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment