countAllGroupedByLinkId

abstract suspend fun countAllGroupedByLinkId(): Map<Long, Long>

Return

Map where key is RecordEntity.deviceCharacteristicLinkId and value is amount of records with this id