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
Debaranjan GhoshDebaranjan Ghosh 

how do we assign large queries results to a collection ?

In Salesforce how do we assign large queries results to a collection and looping through the collection ( ie without SOQL for loops )? Please share code example 

Best Regards 
Debaranjan Ghosh
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

In the above scenerio you can use SOQL for loop as mentioned in the below article (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL_VLSQ.htm).


If this solution helps, Please mark it as best answer.

Thanks,
Elise SmithElise Smith
Thank you for the solution. I have fixed the issue successfully. Now I have time to find out What a Jeep wave is (https://vascarabag.com/what-is-the-jeep-wave/). Thanks again :)