Example:
I have no problems extracting names, phone numbers, email addresses from the IOS device contacts. I have been experimenting with different approaches and strategies to:
My attempts takes roughly 30-45 seconds for 500 contacts. The same set of contacts takes 2-5 seconds roughly for snapchat or twitter to work with.
What is their secret? Good obj-c coding? Good database design? I appreciate that they would have highly efficient hosting stacks but I wasn't expecting that kind of time difference.
Is it better to:
I think the key is to make the request smaller by utilizing a single piece of contact information for the search rather than using names, numbers, and email addresses. If your service requires any of those pieces for sign up, like the phone number, use just the phone number. When you return info from your server, don't send anything you don't need, like the phone numbers you couldn't find a match for.
Secondly, your option #3 isn't a bad idea if you have the technical know-how. I recommend a library called SocketRocket. It was developed by the people who make Square and makes implementing websockets on your front-end very easy.
I can't speak to your back end, but I use node.js and this package: https://github.com/einaros/ws Very easy to install (npm install ws
) and also easy to use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With