Failed to convert rust `String` into napi `string` when selecting columns of leftJoined table
Hello Guys,
i am working with a lot of data in my app. Currently i am selecting a date range which includes 1.2 Million entries.
Everything worked fine till i reached this amount of data.
Now if i try to select 4 columns of a left joined table i am greeted with the following error:
Failed to convert rust
String into napi string
When removing the columns from my query it works. Sadly this doesnt help me because the data from the other table is needed.
Selecting less datasets also fixes the problem but my app needs to show data for custom dateranges which can easy go up to 5 Million entries.
Now im not sure how to fix this and im also not sure if prisma was the right choice for an application with so much data
Best regards
Damian2 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!There is a related GitHub Issue about this:
https://github.com/prisma/prisma/issues/13864
Could you try the Rust Free version of ORM and check if you still run into this error?
https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/no-rust-engine
GitHub
Error: Failed to convert rust
String into napi string · Issue ...Latest reproduction Still failing in version 6.0.1 I updated the test repo https://github.com/Quesstor/prisma-error Bug Description When querying large amounts of data (approximately 500MB or more)...
Use Prisma ORM without Rust engines | Prisma Documentation
Learn how to use Prisma ORM without Rust engines