mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob] Avoid redundant event
This commit is contained in:
parent
eb3637deef
commit
dd738927fd
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user