Ionic 2: Ion-list performance issue


#1

I am building a contact app in ionic 2. Contacts are displayed through ion-list.I am using sqlite as db whenever I do operations like delete,insert, at least update it is at least 30 sec to load all the ion-item again.Is there any alternatives for this or how I can increase the performance.Sqlite is fast but the items are loading slow.

Using virtual list is impossible for me since the list is of following structure.(But i did try virtual list removing the ion-item-group but still same issue).

ion -list
ion-item-group ->(Here i am grouping the contact based on alphabet)
ion-item-divider
A,B,C etc…
ion-item-divider
ion-item
/ion-item
/ion-tem-group
/ion-list


#2

How many items are you trying to load in that list at once? If virtualscroll isn’t an option and you’re sure its due to slow rendering of many items, you should load less items at a time and possibly work with a infinite scroller to spread the weight of loading that many list items at once.


#3

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.