Why the mutation is so slow with too many conflicts even i add noconflict

schema

A user can have some device, two different users can have the same device. The schema is as followings:

type DeviceId {
  gid_device
}

type User{
  gid_user
  name
  has
}

gid_device: string @index(hash) @noconflict .
gid_user: int @index(int) @noconflict .
name: string @index(hash) @noconflict .
has: [uid] @count @reverse .

problem

When i apply mutations concurrently, the speed is too slow with too many conflicts. According to my understanding, there should not be any conflict with @noconflict.

Anybody could help me? God, I’m breaking down with hours’ work on this problem!!!

Can you share the mutations that you are runnning?
The conflicts might be arising due to has predicate since it has count directive, which is known to cause conflict. You could add @noconflict to has predicate and re-run your mutations.

that helps me, thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.