0

I want to insert 400 questions into database with in a second. Please let me know if any one knows the example or answer. Your help is much needed and appreciated. Thanks in advance....

Thank you, Krishna

2 Answers2

1

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.

Community
  • 1
  • 1
Darren Kopp
  • 71,547
  • 9
  • 71
  • 90
0

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

Plamen Nikolov
  • 4,037
  • 3
  • 21
  • 23