Hi,
I need to retrieve data instantly from a table(For ex: 20 entries). Currently, it takes considerable amount of time on 2g as well as on WIFI,3g.
Even when I have a simple table with 2 columns. I am not using any relations. What can I do to decrease the amount of time taken.
Example query:
QueryOptions queryOptions = new QueryOptions();
queryOptions.addSortByOption("created ASC");
BackendlessDataQuery backendlessDataQuery = new BackendlessDataQuery();
backendlessDataQuery.setQueryOptions(queryOptions);
IDataStore<Test> DATA_STORE = Backendless.Persistence.of(Test.class);
DATA_STORE.find(backendlessDataQuery, new AsyncCallback<BackendlessCollection<Test>>() {
@Override
public void handleResponse(BackendlessCollection<Test> response) {
callback.handleResponse(response.getCurrentPage());
}
@Override
public void handleFault(BackendlessFault fault) {
callback.handleFault(fault);
}
}
);
You need to share more information before I can suggest (or say) anything. With the amount of information you shared, all I can say “ok, that’s seems like a lot of data. Loading 344 objects into a mobile device seems unreasonable, not a single person can handle so much data at once”.