test: bench inserts

This commit is contained in:
shenlong-tanwen
2025-02-26 12:56:25 +05:30
parent 0e8b19e269
commit 65f5daa32c
11 changed files with 804 additions and 4 deletions
@@ -3,6 +3,9 @@ import 'dart:async';
import 'package:immich_mobile/domain/models/asset.model.dart';
abstract interface class IAssetRepository {
/// Batch upsert asset
Future<bool> upsert(Asset assets);
/// Batch upsert asset
Future<bool> upsertAll(Iterable<Asset> assets);
@@ -3,4 +3,6 @@ import 'package:immich_mobile/domain/models/render_list.model.dart';
abstract interface class IRenderListRepository {
/// Streams the [RenderList] for the main timeline
Stream<RenderList> watchAll();
Future<RenderList> getAll();
}