<Flow&lt;List&gt;.map {} vs differents queries in ...
# stackoverflow
u
Flow&lt;List&gt;.map {} vs differents queries in room database I am developing an inventory management app in Kotlin. I developed a CustomListUtil class to manage user preferences and found it very useful to filter the lists from a function of the same class, so that my Dao had really few queries and then filtered the lists with Flow. At least at first glance my code looked neat and understood very well. Previous Dao code: @Dao interface ItemDao { @Insert (onConflict = OnConflictStrategy.IGNORE) suspend fun insert(item: Item) @Update //(onConflict =...