Issue with Upserting Documents in Typesense Collection
TLDR Rahul has issues with upserting many documents on Typesense. Kishore Nallan mentioned it's a JS client issue and smaller document numbers or a newer version would work.
Apr 05, 2022 (19 months ago)
I've one collection in typesense which has 33 columns. I'm upserting around 20000 documents at a single time with the batch_size 500 but it doesn't work. It throws the error "RangeError: Too many properties to enumerate". So if anyone knows then please get me a solution and also let me know if I'm doing anything wrong.
Thanks in advance
Kishore Nallan07:12 AM
Kishore Nallan07:31 AM
We added a work around here: https://github.com/typesense/typesense-js/pull/88
So it should work in recent JS client versions.
Kishore Nallan07:34 AM
Kishore Nallan07:39 AM
Indexed 2779 threads (79% resolved)
Importing data to Typesense Cloud with JS client
Zaiste attempted to import data to Typesense Cloud but encountered an error. Kishore Nallan explained the error was due to server side backpressure and suggested a curl approach for the import.
Resolving Typesense Documents Import Error
Aljosa experienced an error while using typesense `documents().import()`, related to handling of large document arrays. Jason clarified that batch_size controls server-side batching, not client-side. He advised splitting arrays to address the issue and committed to elaborating its functionality in the docs. Aljosa proposed amending the TypeScript types to accommodate batch_size in the import options.
Troubleshooting Typesense Document Import Error
Christopher had trouble importing 2.1M documents into Typesense due to memory errors. Jason clarified the system requirements, explaining the correlation between RAM and dataset size, and ways to tackle the issue. They both also discussed database-like query options.