mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 01:27:17 +00:00
[mob] Avoid redundant event
This commit is contained in:
@@ -49,6 +49,7 @@ extension ClipDB on MLDataDB {
|
||||
}
|
||||
|
||||
Future<void> putMany(List<ClipEmbedding> embeddings) async {
|
||||
if (embeddings.isEmpty) return;
|
||||
final db = await MLDataDB.instance.asyncDB;
|
||||
final inputs = embeddings.map((e) => _getRowFromEmbedding(e)).toList();
|
||||
await db.executeBatch(
|
||||
|
Reference in New Issue
Block a user