I understand converting from binary to string is a slow and expensive operation.
Our project requires, modelled closely on a Big Data solution, will take an incoming stream of binary data.
Most Big Data solutions suggest using a NO SQL database, like Mongo or Raven and parse the data into JSON for easier querying later... This is where I'm confused. I assume it's only to JSON for unstructured data.
The incoming data is already semi structured but ignoring that, if I convert it to JSON then surely that is a binary to string conversion and I'll incur the penalty of the delay whilst this occurs? And if I want to query the int values, which are now string, I've got to convert them back again.
I understand that JSON will map the values which is possibly faster than converting.
If I convert binary data into JSON for easier dealings (readability/maintenance etc) but then need to query numeric values (which were initially query able in binary format) then surely I'm doing this conversion twice (binary to string and then string back to binary)? Or when we query number values in JSON, is it not converting it back to binary?