Timeline for Which one is better : Loop with SOQL or create a List then Loop?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 4, 2016 at 20:08 | comment | added | Adrian Larson♦ | I'm hesitant to badge hammer here, but this is a clear duplicate. | |
Jul 4, 2016 at 20:07 | answer | added | Adrian Larson♦ | timeline score: 14 | |
Jul 1, 2016 at 14:33 | history | tweeted | twitter.com/StackSalesforce/status/748887378111107072 | ||
Jul 1, 2016 at 8:30 | vote | accept | unidha | ||
Jul 1, 2016 at 8:30 | vote | accept | unidha | ||
Jul 1, 2016 at 8:30 | |||||
Jul 1, 2016 at 8:19 | comment | added | Keith C | Remember that performance is rarely the key deciding factor - premature optimization is the root of all evil:. | |
Jul 1, 2016 at 7:53 | answer | added | sfdcfox♦ | timeline score: 68 | |
Jul 1, 2016 at 7:18 | comment | added | Novarg |
in my opinion, the first one is (a very tiny bit) better performance-wise. The difference is that in the second one you also have to create a new variable(List ) which will take some memory
|
|
Jul 1, 2016 at 6:56 | comment | added | unidha | I know from the grammar wise same.I just curious on the performance side. | |
Jul 1, 2016 at 6:54 | comment | added | highfive | It's going to be a detailed answer, better you go through this document | |
Jul 1, 2016 at 6:49 | history | edited | Ratan Paul | CC BY-SA 3.0 |
added 3 characters in body
|
Jul 1, 2016 at 6:48 | history | asked | unidha | CC BY-SA 3.0 |