Hey all!
I'm saving an array of floats using a primitive-array type
<primitive-array name="vals">
<key column="ITEM_ID"/>
<index column="IDX"/>
<element type="float"/>
</primitive-array>
This does work nicely for persisting things. However, all of the values in my array are being stored in the database, including ones with a value zero. Storing the zero value floats is unnecessary since that is the default value they are given when a float array is constructed anyway, its just a waste of db space. Does anyone know of a way to only save the nonzero values to the db?
Thanks!
|