Hi @tintinthong, I dont believe that Dgraph should be scanning all Person nodes as the predicate has a hash index. This can be confirmed in the backend through Ratel.
Could you please share the dataset you are testing against? Also please let us know your cluster setup and we will try and reproduce this behavior.