I have a requirement for a database with around 400,000 records in iPhone and Android. Any best method in doing this? Is it possible?
Yes, it is possible.
You can put your database in asset
or raw
folder. Then copy your database at First Run.
You can check if database already exist or not see this answer
see this answer for How to copy large database.
But if you don't have problem with internet access you can develop simple webservice
400,000 records is quite a bit. Even the amount of storage it takes is likely to be quite high, and then there's the problem of running queries on it. Here are a few suggestions to optimize your speed:
If you really need it on the device
If having it on the device is not an option
You could also refer to this article for some more information on dealing with large databases on Android.
Additionally, I read on another SO post that there is a soft limit of 10000 records due to performance. You may or may not be able to get around it.
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