#community-help

Updating Connection Timeout for Bulk Insertion

TLDR Vishal experienced timeouts during a bulk insert of 1800 docs. Jason suggested increasing the connection timeout to 15 minutes for imports.

Powered by Struct AI
2
4mo
Solved
Join the chat
Jun 09, 2023 (4 months ago)
Vishal
Photo of md5-178450ab9171fe1c7eba3a5eb7e1a312
Vishal
06:17 PM
when trying to bulk insert docs, should the connection timeout be updated? (trying to insert 1800 docs from a pandas df and it keeps timing out)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:32 PM
Yeah, the default timeout is set low to account for searches. You want to increase it to as high as say 15 minutes for imports: https://github.com/typesense/typesense-python/blob/765c99668bd9832a9dd523405bc54444b980c475/examples/collection_operations.py#L18