typesense-mongodb icon indicating copy to clipboard operation
typesense-mongodb copied to clipboard

Error for a db with 270k records and more than 30 fields

Open VarFra opened this issue 2 years ago • 1 comments

Description

I've a problem to sync a MongoDB collection that have more than 270k documents with more than 30 fields. The process workers for a while and than exit with an error.

Steps to reproduce

typesense-mongodb
--mongo-collection=page_infos
--mongo-database=MotherDB
--typesense-collection=page_infos \
--mongo-url="mongodb+srv://user:[email protected]/"
--typesense-url=http://localhost:8108
--typesense-api-key=xxx

Expected Behavior

Complete sync.

Actual Behavior

The error is: "RangeError: Too many properties to enumerate".

image

Metadata

Typsense Version:

OS: Mac OS

VarFra avatar Jun 23 '22 08:06 VarFra

Maybe the issue was solved in the recent version of typesense library... Is possible update it?

VarFra avatar Jun 24 '22 11:06 VarFra