Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sijokun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
sijokun
11mo ago
Found in issue where maintainer answered that they are only going to support JSON https://github.com/pydantic/pydantic/discussions/4097
2.
▲
by
sijokun
11mo ago
Thanks, your Redis story sounds exactly like my motivation. When the cache layer becomes the primary persistence and you’re pushing around millions of JSON-encoded Pydantic objects, the overhead hits both RAM and the bill very quickly. That
3.
▲
I built binary serializer for Pydantic models that's up to 7× smaller than JSON
(github.com)
2 points
by
sijokun
11mo ago
|
5 comments
4.
▲
by
sijokun
11mo ago
I ran into memory issues with a high-load project so I built a compact binary encoder/decoder for Pydantic models. It cut in-RAM object size by up to 7× vs json.dumps(), and ended up saving the whole service from collapsing. GitHub: h