I don't understand why the getCompleteResult method returns true. From the documentation, I'm not clear what this method does. Can you help clarify it?
//clear all accounts;
List<Account> accts = new List<Account>();
for(Integer i = 0; i < 9000; i++)
{
accts.add(new Account(name = test + i));
}
insert accts
ApexPages.StandardSetController setCon = new ApexPages.StandardSetController(Database.getQueryLocator([
SELECT
Id, Name
FROM Account
LIMIT 10000
]));
System.debug('has more? ' + setCon.getCompleteResult());