I want to take a performance testing on dgraph v20.07. I founded a huge dataset at:
When I execute command:
dgraph live -f 21million.rdf.gz
It always shows me a lot of error as below:
…
Error while mutating: Attr: [film.performance.character_note] should have @lang directive in schema to mutate edge: [entity:1081204 attr:“film.performance.character_note” value:“Danny at 10” lang:“en” ] s.Code Unknown
Error while mutating: Attr: [film.performance.character_note] should have @lang directive in schema to mutate edge: [entity:185125 attr:“film.performance.character_note” value:“Audiotraffic Member #2” lang:“en” ] s.Code Unknown
Error while mutating: Attr: [film.film.tagline] should have @lang directive in schema to mutate edge: [entity:242618 attr:“film.film.tagline” value:“Three different women married Frankie Lymon. Now as they fight to get a piece of his millions, They will have to prove who married him first and who loved him most.” lang:“en” ] s.Code Unknown
I unzipped the data file and review it line by line. I found the data item that reported error has @lang specified. For example:
<m.0v9m6tc> <film.performance.character_note> “Danny at 10”@en .
<m.0w2yvwk> <film.performance.character_note> “Audiotraffic Member #2”@en .
<m.087kv6> <film.film.tagline> “Three different women married Frankie Lymon. Now as they fight to get a piece of his millions, They will have to prove who married him first and who loved him most.”@en .
All of data item has been specified language with “@en”. Unfortunately, dgraph reports error line by line. It seems work not as designed.
Hi @micli, welcome to the Dgraph community.
The following error could be because of the wrong schema definition. Can you please help with the schema you have defined. Just to define the context, " A @lang directive must be specified in the schema to query or mutate predicates with language tags." You can find more about lang directive here. Looking at the dataset, predicates which needed the @lang directive are type.object.name, film.performance.character_note, film.film_cut.note, film.film_cut.note.
It seems there is still an issue. I got below error at 4m30s.
[01:18:01Z] Elapsed: 04m35s Txns: 14724 N-Quads: 14724000 N-Quads/s [last 5s]: 0 Aborts: 0
Error while mutating: Server overloaded with pending proposals. Please retry later s.Code Unknown
Error while mutating: Server overloaded with pending proposals. Please retry later s.Code Unknown
The imported number suspended at 1472400 till now.