forked from imhotep/incubator-cordova-android
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Greatly improve speed of fetching contacts.
We were selecting every column in a fairly wide table before. This code fetches only those columns necessary to populate the data requested by the Javascript code. In experiments with coworkers' and my own contact lists, the time to fetch ~1440 contacts has gone from over 40 seconds to less than 10 seconds. I have not tested with fewer than 1400 contacts, but I expect at least a small improvement.
- Loading branch information
1 parent
92b1de8
commit e11f8f6
Showing
1 changed file
with
119 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters