
1 个回答
Try offsetting your data. Here is an example of how you can do it. @RemoteAction public static SObject[] getRecords(Id offsetId) {
if(offsetId==null) {
return [SELECT Id,Name FROM Contact ORDER BY Id ASC LIMIT 100];
} else {
return [SELECT Id,Name FROM Contact WHERE ID > :offsetId ORDER BY Id ASC LIMIT 100];
}
}
This way you can limit the data that is retrieved and the response can be quicker.
Hope this helps.