vendredi 21 août 2015

What is the way to insert a huge JSON data into a SQLite DB in android

hope everything fine! so, I have a question that it's breaking me out for about a week and I can't solve it. I have a large json request, that is, it has around 50k rows with 15 columns that I have to insert into a SQLite DB with the same structure, this is, I have to copy the same data allocated in postgres db into my sqlite db within my app. I really do not know how the deal with this, is there some efficient way to do it? is there some api or something that could help to the work? I have to tell that I'm able to do with OMRLite with JSON datas that isn't large but when I try to do with a bigger ones I have my app crashes and has the out of memory error. Please if you have some idea or some example that I could follow I will appreciate it a lot! I know you rock guys! thanks in advance!

Aucun commentaire:

Enregistrer un commentaire