Rule Set: Apex, perfomance
Description:
When working with very large amounts of data, unfiltered SOQL queries can quickly cause governor limit exceptions
Code Sample demonstrating the issue:
public class Something {
public static void main( String as[] ) {
Account[] accs = [ select id from account ]; //Bad
}
}
Rule Set: Apex, perfomance
Description:
When working with very large amounts of data, unfiltered SOQL queries can quickly cause governor limit exceptions
Code Sample demonstrating the issue: