Slow query times for has() function (on play.dgraph.io)

@iluminae - Thanks for the response.

I’m aware that storage is by predicate, which is why it surprised me that it took so much longer. It feels to me like has(predicate) should access one of the indexes in some way, but perhaps it doesn’t. That would likely explain the difference in times. It’ll be interesting to see what the devs say on that.

Can you suggest a function that would list all the nodes with predicate ‘name’ other than has() that would work on the Freebase data set which has multiple types using the ‘name’ predicate? I’ve tried

{
  q(func: regexp(name, /^.*$/)) {
  	name
  }
}

but get the error

and

{
  q(func: gt(name, "")) {
  	name
  }
}

gives

I’m still learning the range of functions that are available, and any pointers would be appreciated.