I want to minimize traffic/storage costs on GAE.
Users fill out a form, checking boxes to select options which are lines of text, eg "I wake up two or more times during the night." or "I sleep less than 7 hours per night." or "I usually have trouble falling asleep."
I want to store the user's selections using the datastore. I suppose I can save on storage space by giving each selection a unique identifier. Then I'll just store (for example) "342, 554, 106" instead of three long lines of text... Then retrieve those numbers and translate them back into sentences next time loading the page for each user.
My question is, will it be better to do that conversion on the client side, or the server side?
Obviously, doing the conversion on the client side will mean sending LESS data from client to server for storage - which is good. However, it would mean sending MORE data from server to client, considering the additional lines of client-side javascript necessary to facilitate the conversion, which they will be downloaded as part of the page source - and that could be bad.