question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom queries are executed multiple times?

See original GitHub issue

When running the demo project and running the following query

{
  actorPager(page: 1, pagesize: 10, search: "an")
  {
    people {
      firstName
    }
    total
    pageCount
  }
}

The QueryController.RunDataQuery method is executed once but the GraphQLSchema.PaginateActors is executed multiple times?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lukemurraycommented, May 9, 2020

@Peter-Optiway this is exactly what I’d like to look at doing!

I haven’t given it a good look / think yet. But we should be able to collect the expression when we are creating it in the visitor and replace it with a parameter and later when executing (and we have all the arguments we require) execute those service calls (once) and pass the results in as arguments.

0reactions
lukemurraycommented, Oct 22, 2020

This has now been published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my query run multiple times - Power Query
This article provides information about the various reasons that a Power Query query will sometimes run multiple times.
Read more >
Execute a query multiple times
I would like to do something similar but with a Query. The same query would be executed multiple times and then the result...
Read more >
Why is an oracle query executed multiple times?
Some selects are being executed over 500k times. A Person cannot run a query that many times without getting really, really bored.
Read more >
SQL query executed multiple times
This query is executing multiple times using different values as params. It executes after new object is saved. In total it takes a...
Read more >
How to run a query multiple times with different values in date
I'm very new to the sql and am wondering what is the easiest way to run the same query multiple times with different...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found