salesforce - accessing large number of records in SOQL -


in salesforce, having custom object , there can million of records in object in future. developing dashboard using apex , visualforce need access records @ 1 time in single query. query is: [select count(custom_cases__c), status__c custom_case__c group status__c]

so accessing records @ 1 time , exceeding governer limits.

what can achieve this?

please provide me solution , if possible example because new salesforce.

it shame salesforce counts aggregate function not 1 result, amount of rows aggregated. means if have on 50000 results, you'll error (sobject query row exceeded, in line)

there idea that, please upvote!

the workable solution see @ moment (and solution use myself) program , schedule apex batch job run, , save results in new custom object. use custom object source dashboard.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -