function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Number of SOQL in a web service

What is the number of SOQL I can write in a web service.
Its all in the docs.

The Client is using Platform Edition as production.

As per the doc I can use 100 SOQL in a WSDL method.

Now a method lies in a class, does this applies to class or method.

So my query is if I consume this limit in one method and write further queries in another method which will be called by previous method. Then I place both methods in a single class. Is this possible. Will I hit governor limit.


Thnks in advance 

See the 2nd paragraph in the docs

"Governor limits are applied based on the entry point of your code. For example, if you have an anonymous block call a trigger, the limits that Apex runtime engine uses are the limits for the anonymous block, not for the trigger."

SO if I interpreted correct,

the queries will be counted from the entry point to the end.

If there are 3 methods in a class. count will be for all the 3 methods.