cancel
Showing results for 
Search instead for 
Did you mean: 

Limiting the time taken to return limited data

I have a graphQL System query which has the potential to return a couple of thousand nested AWSresource nodes:

{
  System(code: "single-system-view") {
    name
    awsResources {
      name
    }
  }
}

By using the first pagination syntax (first:100) I can reduce the list returned to me to the first 100 records BUT I'm not seeing a huge change in performance. Does the underlying full query still run to get all the records but only returns what I asked for?

(my actual query is more complex with 10 sub types attached to each System - each of which can have hundreds of records).

Thanks
Geoff

1 REPLY 1

MuddyBootsCode
Graph Steward

I believe it still runs the full query. You may need to check into pagination or a custom cypher query with a range of ids.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.