Replies: 2 comments 3 replies
-
Filtering makes the documents smaller and thus consumes less space on the server. In each document, the keys are stored; if they have no value, it would make sense not to store them unnecessarily. The smaller the document the faster the network communication. What advantage would provide the storing attributes with nil? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Interesting use case. I need some time to check how it could work to be optional. I use macros to create very fast load and dump functions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to save a document represented by an Elixir struct, it must be past through dump/1 to strip out the struct key/values. That seems ok. But then why does that function always strip out all the keys where the value is nil? It seems like it shouldn't do this, or at least it should be optional.
Beta Was this translation helpful? Give feedback.
All reactions