i need some advice regarding the usage of Room in one of my projects. its a multi-module project and at the begining the db was needed in only one of the modules so it was initialized there, a while after i needed to add some caching to one of my other modules so i created a another db for that feature. now im kind of regreting it😅 since yet another feature could use its own table to save a list of data but i think that creating mutiple databases like this can hurt performance and eat Ram.
should i merge everything and put it in a shared module or its ok to have multiple DBs like this?
m
Meet
09/15/2024, 11:08 AM
my advice Single Database, Multiple Tables*:* Each feature own table and
Dao
, but they all live in the single Database.
👍 2
Meet
09/15/2024, 11:13 AM
if many table so group of table on each database like if some feature isolated no connect to other feature so create another database