
    3i]                     B    S SK Jr  S SKrS SKJr  S SKJr  S\SS4S jrg)    )ListN)	ServerAPI)
Collectionclientreturnc                    U R                  5         SnSnSnU R                  5       R                  (       a  SSS.nOgSn/ n[        U5       H'  nU R	                  SU 3US9nUR                  U5        M)     [        R                  R                  X5      R                  5       n[        U5       Vs/ s H  nSU 3PM
     n	n[        U5       H  nXV   R                  X5        M     gs  snf )	z_Test that we can create a large number of collections and that the system
# remains responsive.
   N   )zhnsw:batch_sizezhnsw:sync_thresholdi'  test_collection_)metadatatest_id_)resetget_settingsis_persistentrangecreate_collectionappendnprandomrandtolistadd)
r   NDr   num_collectionscollectionsinew_collectiondataidss
             d/home/james-whalen/.local/lib/python3.13/site-packages/chromadb/test/stress/test_many_collections.pytest_many_collectionsr"      s     LLN
A
AH**'(C 	O$&K?#11qc" 2 
 	>* $ 99>>!&&(D#(8
,8aXaS>8C
,?#3% $ -s   1C()	typingr   numpyr   chromadb.apir   chromadb.api.models.Collectionr   r"        r!   <module>r)      s$      " 5&) & &r(   