Skip to content

Remove outdated info about compression #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

manototh
Copy link
Collaborator

No description provided.

@@ -22,7 +22,6 @@ Use map fields in the following cases:

Map fields reduce impact on field limits, but involve trade-offs in query efficiency and compression. The drawbacks of map fields are the following:
- Querying map fields uses more query-hours than querying conventional fields.
- Map fields don’t compress as well as conventional fields. This means datasets with map fields use more storage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit more nuanced than that. Map fields will compress nearly as well as regular fields when there's a lot of shared structure / fields between map values. If every map value is completely different, different keys, etc, then for sure they won't compress so well. When the maps are mostly the same structure, they'll compress better.

Now, apart from compression, there's a lot more data in a map than, say, and integer, or a small string. So, while we will compress well the common sub fields across maps, the top level map field overall will still consume storage proportionally to the number of fields it has and the shape of its values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsenart Many thanks for this. I've tried to capture the essence of these nuances. Please let me know if this works better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants