[mob] Storge cluster summary in batches
This commit is contained in:
parent
ab875ea9a9
commit
44a5b97de1
1 changed files with 5 additions and 0 deletions
|
@ -387,6 +387,11 @@ class ClusterFeedbackService {
|
|||
updatesForClusterSummary[clusterID] =
|
||||
(avgEmbeedingBuffer, embedings.length);
|
||||
}
|
||||
// store the intermediate updates
|
||||
if (updatesForClusterSummary.length > 100) {
|
||||
await faceMlDb.clusterSummaryUpdate(updatesForClusterSummary);
|
||||
updatesForClusterSummary.clear();
|
||||
}
|
||||
clusterAvg[clusterID] = avg;
|
||||
}
|
||||
if (updatesForClusterSummary.isNotEmpty) {
|
||||
|
|
Loading…
Add table
Reference in a new issue