Question: The Readme says there's room for massive improvement in performance. What's the performance like right now? Any benchmarks?
Question: The Readme says there's room for massive improvement in performance. What's the performance like right now? Any benchmarks?
The biggest blockers in terms of performance are:
- Communication with the internal Rust engine is performed over HTTP instead of FFI.
- You cannot select a subset of fields (every scalar field in a model is selected)
- You cannot skip pydantic validation which while fast is unnecessary in some cases
With that said Prisma Python should be reasonably fast but I would expect it to be on the lower end of the spectrum compared to other Python ORMs. I have ran some load tests locally and creating 500,000 records took about 90 seconds.
How come GitHub doesn't highlight any Rust code in the project repo?
It means I don't have to worry about things breaking on cross compilation between mac/windows/linux.
The method used to interface with the internal engine will be able to be configured in the schema: https://www.prisma.io/docs/reference/api-reference/prisma-sc...