In my Rails application, I want to preserve the geographical boundaries of the field column columns in the database. For example, the border of New York is represented as a polygon: an array of arrays.
I announced that my model serializes polygons, but I'm not sure that I should store them even that way. The size of these serialized polygons easily exceeds 100,000 characters, and MySQL can store about 65,000 characters in a standard TEXT field.
Now I know that MySQL also has a LONGTEXT field. But I really want my application to be database aggregated. How does Rails handle this on its own? Will it automatically switch to LONGTEXT fields? How about when I start using PostgreSQL?
source
share