Looking to incorporate a static dataset into a react-native app.
This dataset consists of similarly structured objects:
[someUniqueId:string]: {
title: string
// and ~50 numeric properties like
protein: number
...
}
With around 9000 items in this format, I am aiming to efficiently access values by key, such as dataset[someKey].protein
. However, I am aware that the majority of the file size is due to the keys rather than the values. How can I optimize the file size while maintaining simplicity in reading and filtering?