这是indexloc提供的服务,不要输入任何密码
Skip to content

Relay: Identical queries upto 8x slower in relay #5056

@ro-savage

Description

@ro-savage

I ran the same complex (but still simplified) version of one our real world queries with both the Relay API turned on and off. The relay response is almost 2.5x slower.

image

The only difference was at the very at the very start of the query to handle the relay structure

query MyQuery {
  accounts_connection(where: {id: {_eq: 496}}) {
    edges {
      node {
        id

vs

query MyQuery {
  accounts(where: {id: {_eq: 496}}) {
        id

And the rest was identical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/relayRelated to GraphQL Relay

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions