A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/635 below:

Avoid soql/sosl queries without a where clause or limit statement · Issue #635 · pmd/pmd · GitHub

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
	}
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4