demo app too slow to load 1000+ contacts

Bug #1193200 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
address-book-app
Fix Released
Critical
Renato Araujo Oliveira Filho
address-book-service (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

build saucy-19
qtpim from ppa:canonical-qt5-edgers/qt5-beta2
contacts-demo-app from trunk

I have imported 1199 contacts into my address book. Once the address-book-service is running, it takes ~5 seconds for the contacts-demo-app to display any results on the screen. This needs to be improved. Also it appears that it's loading all the contacts into memory which is also not a good idea as this will consume a lot of unecessary memory.

The app should be changed to do the following:
1) It should do an initial query to get the total number of contacts and display that number in the Contact List (xxx) label
2) It should query for the favorites and for the first page of results only and immediately display that on the screen (per design)
3) The queries should only return the full name and avatar as that is the minimal information needed on the contact list screen.
These 3 steps should take < 1 second - should be instant.

4) then possibly in the background fetch the next few pages of data, but not all the pages. They should only be fetched on demand

This will make the app consume much less memory and load quicker. Most access to contacts will be done by searching rather than scrolling to find a contact. The goal is to get the initial page on screenscreen asap and have the app consume minimal memory.

Related branches

Bill Filler (bfiller)
Changed in address-book-app:
importance: Undecided → Critical
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
Bill Filler (bfiller)
Changed in address-book-app:
milestone: none → ubuntu-13.07
status: New → Fix Committed
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

waiting for new qtpin to land on saucy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package address-book-service - 0.1.0+13.10.20130729-0ubuntu1

---------------
address-book-service (0.1.0+13.10.20130729-0ubuntu1) saucy; urgency=low

  [ Renato Araujo Oliveira Filho ]
  * Favorite and PreferredAction support implementation.
  * Avoid QContactEngine crash when the request is deleted during a
    query. (LP: #1204265)
  * Removed missing return call.
  * Only notify about the new contacts on FetchRequest. (LP: #1193200)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 59
 -- Ubuntu daily release <email address hidden> Mon, 29 Jul 2013 07:45:52 +0000

Changed in address-book-service (Ubuntu):
status: New → Fix Released
Changed in address-book-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.