You need to sign in to do that
Don't have an account?
Shephali Swarnkar
Help to understand why each LOC executes for that many times
INTEGER I =0; for(List<Opportunity> accs : [Select Name from Opportunity]) { System.debug('size' +accs.size()); I++; System.debug('OUTsize' +I); } System.debug('OUTsize' +I);
This will execute only once and you will get each system.debug statement only once. Can you let me what excatly are you expecting.
Thanks,
i just wanted to understand the debuging and execution.
1. why SOQL executed for just one time. i have 2430 opportunity records. if it forms batches then why only for 1 time executes why not 2430/200 times.
2. Why line 4 executed for 39 times.
3. why line 7 executes for 2 times.
Thanks