I have nested arrays in a mongodb collection. In my real life situation these take up A LOT of space.
{
field: 'value',
field2: 'value',
scan: [
[
{
array: [0,1,2],
anotherField: "a"
},
{ intfield: 1 },
{
array: [0,1,2],
anotherField: "a"
},
{
array: [0,1,2],
anotherField: "a"
},
{
array: [0,1,2],
anotherField: "a"
},
],
[
{
array: [0,1,2],
anotherField: "a"
},
{
array: [0,1,2],
anotherField: "a"
},
{
array: [0,1,2],
anotherField: "a"
},
{ intfield: 1 },
{
array: [0,1,2],
anotherField: "a"
},
]
]
}
The "array" fields were stored as float64 using pymongo. Is there any way to reduce these from float 64 to float32? Even though they are ints in the example, I need them as floats