function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ran67ran67 

Fetch more than 10000 records using the database.getquerylocator

Hi

How to fetch 10000 recordsusing the database.getquerylocator in class can any one help.

thanks in advance

digamber.prasaddigamber.prasad

Hi,

 

Are you talking about Batch Apex?

 

Happy to help you!

 

Regards,

Digamber Prasad

ran67ran67

Hi

but in my requirement i want  to display  on the page all the records .so ithink i cannot use the batch apex

digamber.prasaddigamber.prasad

Is page going to be read only? If yes,  please see below link, it will help you:-

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_readonly_context_pagelevel.htm

 

Let me know if you have any question.

 

Happy to help you!

 

Regards,

Digamber Prasad

vijaymind1.3882934310271746E12vijaymind1.3882934310271746E12
How many records return using Database.getQueryLocator in single transaction in normal SOQL and in batch class.
Method are same but in simple trasaction it return 10000 as documented so how it return upto 50 million in batch class ?