Check the existence of a large list of nodes

Hi all,
I would like to check the existence of a large list of nodes and return its uid if found. Here is my code in Python:

        import json
        import pydgraph

        variables = ['some_id_1', 'some_id_2', ... , 'some_id_N']
        query = f"""
	{{
		node(func: eq(id, {variables})){{
			uid
			id
		}}
	}}
        """

	result = json.loads(txn.query(query).json)

It works well if the variables is small (few hundreds) but will fail when I try to query 400k id at once. Here is the error message I got:

debug_error_string = “{“created”:”@1578897702.676993382",“description”:“Error received from peer ipv4:127.0.0.1:9080”,“file”:“src/core/lib/surface/call.cc”,“file_line”:1056,“grpc_message”:“Received RST_STREAM with error code 2”,“grpc_status”:13}"

Hopefully I can get some help from this forum. Thanks!

Will you create a GitHub issue for this? https://github.com/dgraph-io/dgraph/issues/new. We will have to look into it, and figure whether this could be fixed.