# Is there a speed difference between using RDF and JSON?

**URL:** <https://discuss.dgraph.io/t/is-there-a-speed-difference-between-using-rdf-and-json/9183>\
**Category:** Dgraph\
**Tags:** mutation, rdf, json, area:querylang\
**Created:** [August 3, 2020, 10:47am UTC](https://discuss.dgraph.io/t/is-there-a-speed-difference-between-using-rdf-and-json/9183 "2020-08-03T10:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gotjoshua](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/gotjoshua/32/4150_2.png) [@gotjoshua](https://discuss.dgraph.io/u/gotjoshua)\
**Post date:** [August 3, 2020, 10:47am UTC](https://discuss.dgraph.io/t/is-there-a-speed-difference-between-using-rdf-and-json/9183/1 "2020-08-03T10:47:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [August 13, 2020, 5:51am UTC](https://discuss.dgraph.io/t/is-there-a-speed-difference-between-using-rdf-and-json/9183/2 "2020-08-13T05:51:14Z")

</div>

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

```auto
RDF => Internal format => Badger
JSON => Internal format => Badger

```

There’s no “translation” to RDF.
