Mongo field name size

Does it really matter what we use as field names in a Mongo container? Or does larger field names cause extra text to be downloaded to MinMongo?

For example a container could have a field either called (a) question1 or (b) q1 if the container has 200 records in it then using option b would save 200 x 7 or 1400 characters.

The smaller the data size - the faster the downloads and less memory used.

I Think what I am really asking is data saved in a container loaded with fields names per line or fields name in the header only?

I think the data stream is compressed, so I would assume it doesn’t make a significant difference.

1 Like

Take a look at the How do I optimize storage use for small documents? section of the Mongo developer FAQ (in particular the “Use shorter field names” section).