1. Existing custom objects need to be stored in a SQL database. This object has a lot of properties and even contains a list of elements that hit hundreds of thousands of of the set property.
I try to use JSON serialization of this object, stored in the database, reported maxjsonlength overrun, so modified in order to Int32.MaxValue. Do this, although not an error, but the JOSN string must be very long bar, so that will make the database file is very large bar.
What I want to ask is, will it not be so big with binary storage?
:
In business, why not break the data down into database records for storage? And to serialize it into a bunch of hard-to-query data to store?
Technically, it is inappropriate for a person to think of your data as a direct serialization, no matter what. To be honest, binary serialization should be more efficient than JSON.
2.
- Serialization: The process of converting a data structure JSON string or object into a binary string
- Deserialization: The process of converting a binary string or JSON string generated during serialization into a data structure or object
JSON serialization is a string, not a binary. Is the string!!! OK not binary!!!