Moved from GitHub dgraph/5106
Posted by MichelDiz:
Experience Report
This ticket is related to #4917
–store_xids:
A feature that exists only in Bulkloader. It takes the XID or blank node and saves it to the same node as a property of it with the predicate name as “xid”. e.g.:
<_:MichelDiz> <name> "Michel" .
It will be recorded as
{
"data": {
"q": [
{
"name": "Michel",
"xid": "_:MichelDiz"
}
]
}
This functionality at first does not seem useful. But I’m sure it’s related to the approach on external IDs https://docs.dgraph.io/mutations/#external-ids
e.g.:
<0x321> <xid> "https://www.themoviedb.org/person/32-robin-wright" .
It can be useful in this case and we can use Upsert Block. But it is not useful for those who need to ingest large amounts of data. Only small cases.