Skip to content

Commit ae8fbbb

Browse files
committed
Aborted chunk size
1 parent 2c9d02e commit ae8fbbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cvat/apps/dataset_manager/task.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,15 @@ def _init_tags_from_db(self):
592592
"source",
593593
)
594594
.order_by("frame")
595-
.iterator(chunk_size=5000)
595+
.iterator(chunk_size=2000)
596596
}
597597

598598
for attr in self.db_job.labeledimageattributeval_set.values(
599599
"image_id",
600600
"spec_id",
601601
"value",
602602
"id",
603-
).iterator(chunk_size=5000):
603+
).iterator(chunk_size=2000):
604604
if attr["image_id"] not in db_tags:
605605
continue
606606

@@ -641,15 +641,15 @@ def _init_shapes_from_db(self):
641641
"parent",
642642
)
643643
.order_by("frame")
644-
.iterator(chunk_size=5000)
644+
.iterator(chunk_size=2000)
645645
}
646646

647647
for attr in self.db_job.labeledshapeattributeval_set.values(
648648
"shape_id",
649649
"spec_id",
650650
"value",
651651
"id",
652-
).iterator(chunk_size=5000):
652+
).iterator(chunk_size=2000):
653653
if attr["shape_id"] not in db_shapes:
654654
continue
655655

0 commit comments

Comments
 (0)