Hey guys, I've one collection in typesense which ...
# community-help
r
Hey guys, 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
k
Looks like a client error, what language client are you using?
r
Language client means the stack or anything else? stack is nodejs
k
Yes, and what version of JS client? This happens due to a JS limitation: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object. We added a work around here: https://github.com/typesense/typesense-js/pull/88 So it should work in recent JS client versions.
If you upserted with smaller number of documents at a single time, that should also work.
r
Yes smaller number of documents works fine
k
Importing via curl supports millions of documents. We have to add a way to import a file from JS so that you can do a similar thing with the JS client.