Is there a speed difference between using RDF and JSON?

Are all JSON queries and mutations first parsed and translated into RDF?

Is there any speed advantage to using one or the other for queries and / or mutations?

Sorry for the late reply. I thought that I had responded it, my bad. oO

Well, there’s no difference at all between RDF parsing and JSON parsing (except for those differences by definition). Both are transformed internally into an internal format before get stored. I would prefer RDF due to the support of more types than JSON.

BTW, FYI Dgraph doesn’t stores data in RDF or JSON internally.

The parsing is like

RDF => Internal format => Badger
JSON => Internal format => Badger

There’s no “translation” to RDF.

1 Like