K Kiran Raotole Active Member Licensed User Nov 6, 2018 #1 I have json file which contain nearly 37000 record when I'm using : B4X: Dim list1 As List list1 = json.NextArray Dim exact_record As Int exact_record = list1.Size It slow down app. this work fine : B4X: Dim exact_record As Int exact_record = 38000 what i'm doing wrong?
I have json file which contain nearly 37000 record when I'm using : B4X: Dim list1 As List list1 = json.NextArray Dim exact_record As Int exact_record = list1.Size It slow down app. this work fine : B4X: Dim exact_record As Int exact_record = 38000 what i'm doing wrong?
DonManfred Expert Licensed User Longtime User Nov 7, 2018 #2 Kiran Raotole said: this work fine Click to expand... Kiran Raotole said: Dim exact_record As Int exact_record = 38000 Click to expand... you are just setting a value to an variable Kiran Raotole said: Dim list1 As List list1 = json.NextArray Click to expand... This is the line which needs some time. Only load the last 50 results from the webapi. If you later need more results; reload more from webapi. Upvote 0
Kiran Raotole said: this work fine Click to expand... Kiran Raotole said: Dim exact_record As Int exact_record = 38000 Click to expand... you are just setting a value to an variable Kiran Raotole said: Dim list1 As List list1 = json.NextArray Click to expand... This is the line which needs some time. Only load the last 50 results from the webapi. If you later need more results; reload more from webapi.