多个内存数据库连接?

multiple In-memory DB connections?

如果我们不关闭内存数据库连接并调用尽可能多的 getReadableDatabase() 和 getWritableDatabase(),会有任何问题吗? 如何有效管理内存中的数据库连接。

get****ableDatabase() documentation 说:

Once opened successfully, the database is cached, so you can call this method every time you need to [access] the database.

所以不会有任何问题;这些函数被设计为可以多次调用。

在这方面,内存数据库和磁盘数据库没有区别。