Skip to Content
0

Requesting offline data with Android SMP SDK data is very slow

Apr 26, 2017 at 11:38 AM

47

avatar image

We are implementing a native Android app using the SAP Mobile Platform SDK 3.0 SP14. The app has serveral offline stores to hold master data locally on the device. The data will only be requested, there is no fetch, because the data will not be changed on the device. Every store has the same, simple Entity type with 4 fields. The last one is a String field, which can have a lenght up to 150 chracters.

To access the offline data in a store, the app selects all data at once. But this request is very slow (~ 1,000 items per second). Our largest store has 500,000 items, so requesting this store would have a duration of 500 seconds.

Is there a way to speed up the request for the large offline store?

        if (offlineStore != null) {
            try {
                //Define the resource path
                String resourcePath = format("%1$s",
                            StoreDefinitions.Data.ENTITY_SET_NAME);

                ODataRequestParamSingle request = new ODataRequestParamSingleDefaultImpl();
                request.setMode(ODataRequestParamSingle.Mode.Read);
                request.setResourcePath(resourcePath);
                //Send a request to read the travel agencies from the local database
                ODataResponseSingle response;

// executeReadEntitySet: poor performance
                response = offlineStore.executeReadEntitySet(resourcePath, null);
10 |10000 characters needed characters left characters exceeded

Hello Christian,

Were you able to find out how to speed up the request for offline store?

Regards,

JK (Moderator)

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers