MySQL | How to store insanely long strings ?
Go to solution
Solved by colonel_mortis,
The maximum size of LONGTEXT is 4GB, which you're not going to hit if you're storing data in that format (and MEDIUMTEXT is 16MB, which will still be plenty).
However, you're almost certainly doing things wrong to store it in that format - the conventional format is to have a table with one row per job, and one column per field (source, distance, etc). That way, you're not limited in how many jobs you can store (aside from by the size of your disk), and you can choose to only load the records that are relevant, rather than every record every time (which would become a bottleneck before you hit the 4GB limit).
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now