开发者

Is there any possibility to insert bulk of records with in second in database in android?

开发者 https://www.devze.com 2023-03-12 01:59 出处:网络
I want to insert 400 questions into database with in a second. Please let me know if any one knows the example or an开发者_JS百科swer. Your help is much needed and appreciated. Thanks in advance....

I want to insert 400 questions into database with in a second. Please let me know if any one knows the example or an开发者_JS百科swer. Your help is much needed and appreciated. Thanks in advance....

Thank you, Krishna


Use a compiled statement.

How do I use prepared statements in SQlite in Android?

There's a helper class in android that you can use to make things a bit easier also. It's DatabaseUtils.InsertHelper and here is a good tutorial on how to use it.


Insert into the database in separate thread. Use prepared statements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号