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
6cd140ef
Commit
6cd140ef
authored
9 years ago
by
Manish R Jain
Browse files
Options
Downloads
Patches
Plain Diff
Add query performance, and set host port to 80
parent
d6e4870f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+28
-1
28 additions, 1 deletion
README.md
with
28 additions
and
1 deletion
README.md
+
28
−
1
View file @
6cd140ef
...
...
@@ -28,7 +28,7 @@ This instance contains 21M facts from Freebase Film Data. See the [query section
There's a docker image that you can readily use.
```
$ docker pull dgraph/dgraph:latest
$ docker run -t -i -v /somedir:/dgraph -v $HOME/go/src/github.com/dgraph-io/benchmarks/data:/data -p
80
80:8080 dgraph/dgraph:latest
$ docker run -t -i -v /somedir:/dgraph -v $HOME/go/src/github.com/dgraph-io/benchmarks/data:/data -p 80:8080 dgraph/dgraph:latest
```
Once into the dgraph container, you can now load your data. See
[
Data Loading
](
#data-loading
)
below.
...
...
@@ -171,5 +171,32 @@ The support for GraphQL is [very limited right now](https://github.com/dgraph-io
You can conveniently browse
[
Freebase film schema here
](
http://www.freebase.com/film/film?schema=&lang=en
)
.
There're also some schema pointers in
[
README
](
https://github.com/dgraph-io/benchmarks/blob/master/data/README.md
)
.
#### Query Performance
With the
[
data loaded above
](
#loading-performance
)
on the same hardware,
it took
**270ms to run**
the pretty complicated query above the first time after server run.
Note that the json conversion step has a bit more overhead than captured here.
```
json
{
"server_latency"
:
{
"json"
:
"57.937316ms"
,
"parsing"
:
"1.329821ms"
,
"processing"
:
"187.590137ms"
,
"total"
:
"246.859704ms"
}
}
```
Consecutive runs of the same query took much lesser time (100ms), due to posting lists being available in memory.
```
json
{
"server_latency"
:
{
"json"
:
"60.419897ms"
,
"parsing"
:
"143.126
\u
00b5s"
,
"processing"
:
"32.235855ms"
,
"total"
:
"92.820966ms"
}
}
```
# Contact
-
Please direct your questions to
[
dgraph@googlegroups.com
](
mailto:dgraph@googlegroups.com
)
.
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