fix leveldb (and speed up hasa)

This commit is contained in:
Barak Michener 2014-08-13 13:08:50 -04:00
parent ee11a26bc2
commit 104e7d110d
3 changed files with 42 additions and 38 deletions

View file

@ -202,8 +202,7 @@ func (it *HasA) Next() bool {
return graph.NextLogOut(it, 0, false)
}
tID := it.primaryIt.Result()
name := it.ts.Quad(tID).Get(it.dir)
val := it.ts.ValueOf(name)
val := it.ts.TripleDirection(tID, it.dir)
it.result = val
return graph.NextLogOut(it, val, true)
}