Imported a json with ints but convex converts them into floats
Hi, when I changed the type of my id in my schema from float64 to int64 to reduce the storage my DB takes I got this error:
even though I imported a json where this exact city has an int value.

1 Reply
float64 and int64 take up the same amount of space (64 bits, but documents are rounded up to 1KB)
And indeed existing floats will not satisfy int64, you'd have to perform a migration:
https://docs.convex.dev/production#making-safe-changes
Deploying Your App to Production | Convex Developer Hub
Convex is built to serve live, production app traffic. Here we cover how to