In general, in key and value structures (JSON, PSON...), keys consume a lot of space in the playload.
See this image:
Source Link
One approach to minimizing key size in a PSON would be to allow aliasing for column names, something like this example:
Assigning the alias could be done on the bucket screen:
And in CSV export, the file header could look like this:
In the example above, maybe 18 bytes can be saved by changing ( iu -> interval_uplink, m -> millis ). The code would look like this:
In general, in key and value structures (JSON, PSON...), keys consume a lot of space in the playload. See this image:
Source Link
One approach to minimizing key size in a PSON would be to allow aliasing for column names, something like this example: Assigning the alias could be done on the bucket screen:![image](https://github.com/thinger-io/thinger-server/assets/22058152/ba2324dc-df91-4b1c-a3c3-5b5a18bb8a38)
And in CSV export, the file header could look like this:![image](https://github.com/thinger-io/thinger-server/assets/22058152/3054bc7a-022a-42ff-95ad-59feb9fd5622)
In the example above, maybe 18 bytes can be saved by changing ( iu -> interval_uplink, m -> millis ). The code would look like this: