I load 4 results in each AJAX call, so it does 8 successful insertions, and the 9th fails. Tested with 10 results, 2 success, the 3rd failed.
Tested in hosted mode and with compiled code.
final RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, URL_HERE);
JSONResponseHandler handler = new JSONResponseHandler() {
@Override
protected void onComplete(boolean success, JSONValue data) {
if(!success) return;
// Process JSON here to extract data
List<CommentData> providerList = dataProvider.getList();
for(int i = 0; i < list.size(); i++) {
// CommentData is a plain object that only stores data
providerList.add(new CommentData(id, body, sent, author, authorName));
}
}
};