Jonathan Otto
06/20/2024, 5:14 PMTYPESENSE_HEALTHY_READ_LAG=10000
TYPESENSE_HEALTHY_WRITE_LAG=10000
TYPESENSE_NUM_DOCUMENTS_PARALLEL_LOAD=1000000
TYPESENSE_THREAD_POOL_SIZE=10000
Jonathan Otto
06/20/2024, 5:22 PMJonathan Otto
06/20/2024, 5:54 PMÓscar Vicente
06/20/2024, 6:12 PMJonathan Otto
06/20/2024, 6:18 PMÓscar Vicente
06/20/2024, 6:19 PMJonathan Otto
06/20/2024, 6:19 PMJonathan Otto
06/20/2024, 6:20 PMÓscar Vicente
06/20/2024, 6:20 PMJonathan Otto
06/20/2024, 6:20 PMÓscar Vicente
06/20/2024, 6:20 PMÓscar Vicente
06/20/2024, 6:21 PMJonathan Otto
06/20/2024, 6:21 PMÓscar Vicente
06/20/2024, 6:22 PMÓscar Vicente
06/20/2024, 6:23 PMJonathan Otto
06/20/2024, 6:23 PMÓscar Vicente
06/20/2024, 6:24 PMÓscar Vicente
06/20/2024, 6:24 PMJonathan Otto
06/20/2024, 6:24 PMÓscar Vicente
06/20/2024, 6:25 PMJason Bosco
06/20/2024, 10:39 PMis typesense CPU bound?Yeah, within some parameters (more details below).
can more than 1k-5k docs per api call happen if there are N cores?Yeah, should be possible.
my experience thus far is indexing (on a single collection) seems to be bottlenecked at 1 core onlyEvery field has a standalone index, and updating this index requires a write lock. So Typesense only parallelizes indexing across fields inside a document, and across different collections. So if you only have a single field in your document, then this is effectively a serial operation. The only way to speed this particular scenario up would be to use a higher clock-speed processor. But usually what we've seen is that documents contain multiple indexed fields, (usually more fields than available cores), so that way all CPU core available are utilized well
Jonathan Otto
06/20/2024, 11:41 PMJason Bosco
06/21/2024, 12:33 AM