Is it possible to get data from multi databases in Android SQLite?
eg: SELECT * FROM db1.tableA A, db2.tableB B WHERE A.id=B.id;
Pleaes help, I cannot find any related in SQLiteOpenHelper and SQLiteDatabase classes. Thanks
If it is not possible. Is it any quick way to insert large amount of record to database? I have a XML file with 3000 records. It takes around 3 to 4 mins to insert it (That’s way I put the data to db2).
It is very possible to use multiple databases for a single Android application. See here for a similar question.
If you’d like to avoid using multiple databases, which I would recommend, there have many questions that address speeding up database access times. I would take a look at these resources:
Inserting 1000000 rows in sqlite3 database
Which links to:
http://tech.vg.no/2011/04/04/speeding-up-sqlite-insert-operations/
Basically, use database transactions that surround your entire insert statement (which are described above). This reduces overhead by creating a separate transaction for EACH insert.