Giter Site home page Giter Site logo

benchmarks's People

Contributors

all-seeing-code avatar ashwin95r avatar campoy avatar codexnull avatar danielmai avatar jchiu0 avatar karlmcguire avatar kostub avatar mangalaman93 avatar manishrjain avatar martinmr avatar michaeljcompton avatar micheldiz avatar pawanrawal avatar rarvikar avatar rderbier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

benchmarks's Issues

Remove all adult content from benchmark data

In order to avoid having adult movie titles appearing during demos using https://play.dgraph.io we should remove all the related data from the benchmark dataset.

Currently, there are 6516 adult movies on the dataset, as shown in the query below:

{
  q(func:eq(name@., "Pornographic film")) {
    name@.
    count(~genre)
  }
}
{
  "extensions": {...},
  "data": {
    "q": [
      {
        "name@.": "Pornographic film",
        "count(~genre)": 6516,
        "uid": "0x62b974"
      }
    ]
  }
}

Neo4j MERGE queries inefficient

benchmarks/data/neo4j/main.go

Lines 171 and 176:

"MERGE (n { xid: {xid1} }) MERGE (n2 { xid: {xid2} }) MERGE (n) - [r:`%s`] - (n2)"
...
"MERGE (n { xid: {xid} }) ON CREATE SET n.`%s` = {val} ON MATCH SET n.`%s` = {val}"

These merges are being performed without any supplied label on n or n2, and an index should be present for property xid on whatever label is chosen for these nodes.

As it is now, neither of these merges uses the index, and in each case this requires all nodes in the db to be scanned looking for matches on the xid property of all nodes with each merge. Label-less and index-less merging or matching kills performance and is highly discouraged.

Please fix.

Is there an error in release.schema?

data/release/release.schema file.

type Actor {
    name: string
    actor.film: [Film]
    actor.dubbing_performances: [Film]
}

Is it correct to change to actor.film: [Performance]๏ผŸ

Address Neo4j misconfiguration and inefficiency issues

From Michael Hunger's response to your benchmarking article:

Just really quickly. Unfortunately, your benchmark has a number of issues, that invalidates all its Neo4j measurements.

We recommend users in general to ignore vendor benchmarks and test with their own hardware, data, use-cases for relevant and reliable results.

Here is a quick list from just skimming over, I didn't measure or test anything so don't assume it is all correct / working:

General:

  • Neo4j is no RDF database, so RDF data model makes no sense
  • using a community provided Go Driver for which performance has not been validated, not an official driver like JS, Java, .Net
  • incorrect information in feature table
  • memory usage can be configured

Writes:

  • merge query without labels (:Node) each statement does 2 full all-node-scans
  • no constraint for :Node(xid)
  • no timing published for csv import (11s on my mac 1.1M triples)
  • doesn't use transactions of eg. 50k or 100k updates per request
  • which can be best achieved with a single query per tx and UNWIND of a payload of a array of structs

Reads:

  • no use of parameters in reads
  • disabled query plan cache (which was incorrectly understood as query result cache, which doesn't exist)
  • no constraint for :Film(filmId)

Good luck with your development of dgraph, it looks like a good technology for RDF use-cases.

Cheers, Michael@neo4j

Test Code is outdated

Within benchmarks/data/neo4j/query_test.go,

import "github.com/dgraph-io/dgraph/query/graph"

is obsolete.

And maybe the code & schema need to be checked as well.

Update grafana dashboard

As of DGRAPH v1.1 the default grafana dashboard is missing a lot. Prometheus data seems to have changed since...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.