- “The instruction limit for a single call to a query method on the Internet Computer is 5 billion Wasm instructions.”
- “The instruction limit for an update call on the Internet Computer is 20 billion Wasm instructions.”
However, I do not see specs for composite_queries. I assumed that using composite queries would have enabled us to string together longer queries. Can you confirm that composite_queries can handle no more instructions than a standard query?
I am hoping that it is not that case that in order to run large queries I need to turn them into updates and use something like heartbeat in order to call the updates and save intermediate results until a global state says that it’s complete.
Amendment #1: I see that “some special tasks, like code installation, can even go up to 200 billion instructions” which suggests that it is feasible somehow to execute that many operations.
Amendment #2: Also, I wrote my composite_query on the same canister that I called using ic_cdk::api::call to call one of its other queries. It may be possible that if the queries within the composite_query were to other canisters that it would somehow not be counted against the instruction limit for the composite_query. If that is true, it would be great for me to know. Thanks!