Skip to content

schema with @reverse @count in one predicate and without, the speed is total different #2385

@shanghai-Jerry

Description

@shanghai-Jerry

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?
    v1.0.5

  • Have you tried reproducing the issue with latest release?
    No

  • What is the hardware spec (RAM, OS)?
    64G, Ubuntu 16.04.2 LTS

  • Steps to reproduce the issue (command/config used to run Dgraph).
    nohup dgraph zero -w zw5 --replicas 1 > info1 &
    nohup dgraph server -p p5 -w w5 --lru_mb 20000 --zero localhost:5080 > info2 &
    nohup dgraph-ratel > info3 &

  • Expected behaviour and actual result.
    Situation:
    schema with @reverse @count : the dgraph server process consumes 107% cpu, of course the speed
    is slow.
    schema without @reverse @count : : the dgraph server process consumes over 1000% cpu,
    fortunately, we had fast put speed than ever before.

    That's the matter i think, what did i miss something when the dgraph run the schema with @reverse
    @count, or should I first put entities without these and then alter schema ?

    thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomething requiring a response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions