Replies: 8 comments
-
Hi, could you please check which pydantic version are you using? |
Beta Was this translation helpful? Give feedback.
-
Looking at our
|
Beta Was this translation helpful? Give feedback.
-
pydantic v1 is indeed very slow, however I would not expect it to be this slow. Could you install pydantic v2 or do you have some blocking dependency? |
Beta Was this translation helpful? Give feedback.
-
@joein looking at the lockfile, its not immediately clear to me why were on v1. Will try with v2 and report back |
Beta Was this translation helpful? Give feedback.
-
@joein ok, i ran some tests with v2. I'm seeing However, |
Beta Was this translation helpful? Give feedback.
-
serialization and deserialization in pydantic v2 is written in rust I think it is the cost of data validation If you don't want to validate your data in runtime, you can use |
Beta Was this translation helpful? Give feedback.
-
Do you mind if I convert this issue into a discussion? |
Beta Was this translation helpful? Give feedback.
-
go for it! |
Beta Was this translation helpful? Give feedback.
-
At first I thought the bottleneck in my indexing code was data access, but it turns out that it is actually the
python_client
PointStruct
.Here are the timing comparisons:
It's over 150x slower!
Beta Was this translation helpful? Give feedback.
All reactions