JSON serialization is a string, not a binary. Is the string!!! OK not binary!!!

Source: Internet
Author: User

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!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.