So, I'm seeing some weird lag when fetching relati...
# prisma-client
n
So, I'm seeing some weird lag when fetching relations on a deeply-nested query. If I have a datamodel that looks like:
Copy code
type Content {
  name: String
  children: [Content!]! @relation(link: TABLE, name: "ContentChildren")
}
Then I do a query to my GraphQL API with more than two levels of nesting, e.g.:
Copy code
{
  content(id: $id) {
    children {
      name
      children {
        name
        children {
          name
          children {
            name
          }
        }
      }
    }
  }
}
And in my
children
resolver, I call
prisma.content({ id }).children()
, I see response times that look like this: • first level: ~30ms • second level: ~30ms • third level: ~200ms • fourth level: ~700ms