Nicolas
08/18/2025, 12:34 PMAlan Martini
08/18/2025, 12:45 PMNicolas
08/18/2025, 12:56 PMNicolas
08/18/2025, 3:20 PMNicolas
08/18/2025, 3:31 PMAlan Martini
08/18/2025, 3:50 PMI'm using bulk import. Do you recommend increase this server-side batching from TS? On docs I saw that's saying "you rarely want to modify this parameter".IIRC they are the same. It will be the amount that TS will send over Typesense. On the second point, most users won't have an intensive writing pattern, especially of 10mi/hours, so there is no need to tweak it.
Okay, so with 4vCPUs, it would be 2 parallel imports for a better performance?Your cluster has 4vCPUs? Then it's 3
So, I'm batching 5k and inserting using batch_size of 1k on Typesense.
Does it make sense? Or would be better if both were 1k?1k is a good starting point, but you'll really want to measure what works best in your scenario. Try with 1k, then 2k. If it yields good results, try increasing further. If not, try decreasing to 500 and so on.
@Alan Martini does the size of the collection influences on the velocity on indexing?Absolutely. The size of each document as well. The more documents and the bigger they are (and the more complex, with objects and so on), the longer it should take. Some datasets can take as long as 10 hours to index.
Nicolas
08/18/2025, 4:01 PMNicolas
08/18/2025, 6:05 PMAlan Martini
08/18/2025, 7:11 PMNicolas
08/19/2025, 11:49 AMNicolas
08/20/2025, 1:43 PMNicolas
08/20/2025, 2:40 PMAlan Martini
08/20/2025, 5:16 PMAlan Martini
08/20/2025, 5:16 PMKishore Nallan
08/20/2025, 5:17 PMNicolas
08/20/2025, 5:19 PMNicolas
08/27/2025, 6:03 PMNicolas
08/27/2025, 6:05 PMKishore Nallan
08/27/2025, 6:06 PMNicolas
08/27/2025, 6:11 PM[{'async_reference': True,
'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'reference': 'collection2.id',
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int64'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int64'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'float'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'float'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'float'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int32'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int32'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int32'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'bool'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'bool'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int32'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'bool'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': True,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int64'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'float'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': True,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'int64'},
{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': True,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'float'}],
Nicolas
08/27/2025, 6:12 PMKishore Nallan
08/27/2025, 6:13 PM{'facet': False,
'index': True,
'infix': False,
'locale': '',
'name': 'key',
'optional': False,
'sort': False,
'stem': False,
'stem_dictionary': '',
'store': True,
'type': 'string'},
Enabling sorting on string type can be a very cpu intensive operation.Kishore Nallan
08/27/2025, 6:13 PMKishore Nallan
08/27/2025, 6:14 PMKishore Nallan
08/27/2025, 6:15 PMNicolas
08/27/2025, 6:15 PMKishore Nallan
08/27/2025, 6:16 PMNicolas
08/27/2025, 6:16 PMNicolas
08/27/2025, 6:16 PMKishore Nallan
08/27/2025, 6:16 PMNicolas
08/27/2025, 6:17 PMNicolas
08/27/2025, 6:17 PMKishore Nallan
08/27/2025, 6:17 PMNicolas
08/27/2025, 6:18 PMNicolas
08/27/2025, 6:18 PMNicolas
08/27/2025, 6:18 PMKishore Nallan
08/27/2025, 6:19 PMNicolas
08/27/2025, 6:31 PMNicolas
08/27/2025, 6:45 PMKishore Nallan
08/28/2025, 5:19 AMNicolas
09/05/2025, 10:40 PMNicolas
09/05/2025, 10:40 PMNicolas
09/10/2025, 1:57 PMKishore Nallan
09/11/2025, 12:48 PMNicolas
09/11/2025, 12:50 PMKishore Nallan
09/11/2025, 12:51 PMNicolas
09/11/2025, 12:51 PM