Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching contacts in batches #15

Closed
prakashsejwani opened this issue Jul 13, 2015 · 5 comments
Closed

fetching contacts in batches #15

prakashsejwani opened this issue Jul 13, 2015 · 5 comments

Comments

@prakashsejwani
Copy link

Hi @dbaq ,

Your plugin works great for me. However, I had one request - I noticed that it takes an average of 10 secs or more to pick an entire contacts list (ranging from 700 stored contacts to 1400 stored contacts). 10 seconds is too long a wait in my opinion so can you help me with - fetching contacts in batches, where your plugin fetches contacts in batches - either by no. of contacts (i.e., 100 at a time) or by alphabet (i.e, all contacts starting with ‘a’ first, then starting with ‘b’ and so on)

@dbaq
Copy link
Owner

dbaq commented Jul 13, 2015

If we go with the alphabet solution, it could also solve this issue #13.

@dbaq
Copy link
Owner

dbaq commented Jul 13, 2015

@prakashsejwani, i am curious to know if you have tried to retrieve the contacts list with the official cordova plugin, and if yes, what are the performances?

@prakashsejwani
Copy link
Author

@dbaq, yes i have tried it and i found yours is better in terms of performance than that, because it takes more time as it fetches all contacts, and i wanted only phoneNumbers one.

@dbaq
Copy link
Owner

dbaq commented Jul 13, 2015

Glad to hear that, I have plenty of work right now and I am leaving soon for a 2 weeks vacation so I will probably have time to work on it in 4 weeks. Probably not before.

@dbaq
Copy link
Owner

dbaq commented Jul 19, 2015

After looking at the code and the possibilities, I will implement a method to filter the contact list. For instance you will be able to retrieve all the contacts starting by A or B. So please, follow the development in #13.

@dbaq dbaq closed this as completed Jul 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants