8
I am developing a system where I will import the data from an Excel. As this data will be temporary, I intend to save the information of this imported column in format JSON
at the bank.
Therefore, I was in doubt between using TEXT
or LONGTEXT
.
Of course this case is just one example, but there are other cases where doubt comes to mind, for example, when saving a blog post in the bank. I’d have to use TEXT
or LONGTEXT
?
I imagine there’s a difference just because of the names, and not because I know the technical details of the difference between one and the other.
So my question is:
What’s the difference between
LONGTEXT
andTEXT
?Use
LONGTEXT
would make my bank use more resources than useTEXT
?There is a difference in reading speed or performance when choosing one or the other?
In which cases I would have to use
LONGTEXT
instead ofTEXT
?
NOTE: In fact, I don’t even want anyone to point out in the answer what I should do with this data that I’m importing, but I would just like to know what the difference is between the two types (LONGTEXT and TEXT). Even because I know that the new version of MYSQL has the format JSON, but that’s another story, since I don’t use the new version of MYSQL*.
Compress the string using messagepack
– Marcos Paulo
@Marcospaulo it’s been a while since the messagepack was kind of set aside -> https://developers.google.com/protocol-buffers/ (not that I have any problem using, I just commented to science)
– Bacco