我的本地数据库工作但它有点慢。
我正在使用Mono.Data.Sqlite
库。
从我在网上找到的,我相信这些消息是因为我正在运行不同的线程。每次需要DB文件时,它都会尝试查找它们。有没有办法避免每次都搜索它?我是Android的新用户,如果可能的话,请给我一些细节。
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_decltype'.
[Mono] Probing 'sqlite3_column_decltype'.
[Mono] Found as 'sqlite3_column_decltype'.
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_type'.
[Mono] Probing 'sqlite3_column_type'.
[Mono] Found as 'sqlite3_column_type'.
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_int64'.
[Mono] Probing 'sqlite3_column_int64'.
[Mono] Found as 'sqlite3_column_int64'.
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_text'.
[Mono] Probing 'sqlite3_column_text'.
[Mono] Found as 'sqlite3_column_text'.
Thread started: <Thread Pool> #8
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_bind_int'.
[Mono] Probing 'sqlite3_bind_int'.
[Mono] Found as 'sqlite3_bind_int'.
Thread started: <Thread Pool> #9
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_bind_null'.
[Mono] Probing 'sqlite3_bind_null'.
[Mono] Found as 'sqlite3_bind_null'.
Thread started: #10
Thread finished: #10
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_bind_double'.
[Mono] Probing 'sqlite3_bind_double'.
[Mono] Found as 'sqlite3_bind_double'.
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_name'.
[Mono] Probing 'sqlite3_column_name'.
[Mono] Found as 'sqlite3_column_name'.
[Mono] DllImport searching in: '/system/lib/libsqlite.so' ('/system/lib/libsqlite.so').
[Mono] Searching for 'sqlite3_column_double'.
[Mono] Probing 'sqlite3_column_double'.
[Mono] Found as 'sqlite3_column_double'.
这是我的控制台日志,我不断得到它。我可以看到搜索需要时间,而且它会影响性能。我该怎么办?
感谢您的时间。