cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello experts,

We have created an mdk project and connected it to our backend with thousands of data. When we deployed the app in Mobile Services Client, we are encountering a sync error after a couple of minutes (gateway timeout error) because of the bulk data:

Would you know how to load big data like this? Appreciate any inputs you may have.

Thank you!

0 Likes
View Entire Topic
bing_fang
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi sopizaken.

I am a little confused. I guess that after you adding $top and $skip, there is no 504 issue and this issue is that the data downloaded is not correct.

About 504 issue. I mean that your backend server need support pagination mechanism. For example. If there are too many records for Entity Customers. When accessing /Customers, the response only return a part of data and add a next link in the end of the body. Then mobile server will continue to get the content of next page until no next link in the response body. The mobile service will send many requests to fetch all content.

About you said there is only a record after add $top and $skip. Please capture the network trace in the Mobile service's cockpit and attach the network trace file which is very useful to check the root cause.

Thanks


sopizaken
Participant
0 Likes

tracelog.txtHi bing.fang,

"I guess that after you adding $top and $skip, there is no 504 issue and this issue is that the data downloaded is not correct." - yes this is correct,

Regarding the 504 issue, our backend is already supporting the pagination mechanism. That's why when we run the top and skip in gateway client, it is returning the correct number of records.

I have attached the network trace for the single record returned after adding $top=10 and $skip=1.