We have an app with sqlite which has morethan 10,000 rows and above 10MB
and in our first view we have two buttons
clicking on first button will take to another view which has a tableview,
we need to show all these 10,000 records in that tableview for searching.
Since we are loading all items at a time, its taking some time to load that view when clicked on button in first view.
is there any option to avoid the delay? like any lazy loading option
or showing 100-1000 rows first then appending all other rows at bottom.
THIS IS WHAT APPLE HAS WRITTEN:
We found the following issue with the user interface of your app:
- Your app responded very slowly. For example, when we tapped the Movies or
Albums button, it took 5 seconds.`
You can try loading the data in multiple batches using the LIMIT and OFFSET clauses. See the sqllite docs. E.g. on page load you request the first 100 result rows and when that request completes you can request the next 100 etc.