@@ -59,7 +59,8 @@ def setup_class(self):
5959
6060 @pytest .fixture (scope = "class" , autouse = True )
6161 def prepare_data (self ):
62- self .collection_wrap .insert (data = list (self .insert_data .values ()), check_task = CheckTasks .check_insert_result )
62+ for d in cf .iter_insert_list_data (list (self .insert_data .values ()), batch = 3000 , total_len = self .nb ):
63+ self .collection_wrap .insert (data = d , check_task = CheckTasks .check_insert_result )
6364
6465 # flush collection, segment sealed
6566 self .collection_wrap .flush ()
@@ -306,7 +307,8 @@ def setup_class(self):
306307
307308 @pytest .fixture (scope = "class" , autouse = True )
308309 def prepare_data (self ):
309- self .collection_wrap .insert (data = list (self .insert_data .values ()), check_task = CheckTasks .check_insert_result )
310+ for d in cf .iter_insert_list_data (list (self .insert_data .values ()), batch = 3000 , total_len = self .nb ):
311+ self .collection_wrap .insert (data = d , check_task = CheckTasks .check_insert_result )
310312
311313 # flush collection, segment sealed
312314 self .collection_wrap .flush ()
@@ -641,7 +643,8 @@ def setup_class(self):
641643
642644 @pytest .fixture (scope = "class" , autouse = True )
643645 def prepare_data (self ):
644- self .collection_wrap .insert (data = list (self .insert_data .values ()), check_task = CheckTasks .check_insert_result )
646+ for d in cf .iter_insert_list_data (list (self .insert_data .values ()), batch = 3000 , total_len = self .nb ):
647+ self .collection_wrap .insert (data = d , check_task = CheckTasks .check_insert_result )
645648
646649 # flush collection, segment sealed
647650 self .collection_wrap .flush ()
@@ -942,7 +945,8 @@ def setup_class(self):
942945
943946 @pytest .fixture (scope = "class" , autouse = True )
944947 def prepare_data (self ):
945- self .collection_wrap .insert (data = list (self .insert_data .values ()), check_task = CheckTasks .check_insert_result )
948+ for d in cf .iter_insert_list_data (list (self .insert_data .values ()), batch = 3000 , total_len = self .nb ):
949+ self .collection_wrap .insert (data = d , check_task = CheckTasks .check_insert_result )
946950
947951 # flush collection, segment sealed
948952 self .collection_wrap .flush ()
0 commit comments