Hi, I am new to dgraph database. ver 1.0.4. I do love it.
Sorry about my language since not native speaker.
I have many relations stored in MongoDB (1billion docs in 100collections), like
a->b c->b a->d c->e ...
Both source node and target node has its own unique id, and the edge between two unique id nodes is unique.
I want to push these relations into Dgraph.
After read some documents and posts, I realized that (maybe wrong):
- I can’t insert node with customId by go client
- I can insert many nodes in one transaction by same blank node name and transaction will deal with node duplication . But if nodes are too many, I have to use multiple transactions.
- I have to query before write to do upsert operation.
I don’t know what is best way to do this job in efficiently. If I query before write, should I use a transaction do mutate one doc by one doc, or should I use a redis like cache to accelerate it? and when nodes gets more and more, will query operation in Dgraph keep in O(1) time?