ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Truncated text (at about 60K characters)?

March 06, 2009 11:41am

Subscribe [2]
  • #1 / Mar 06, 2009 11:41am

    turnstyle

    47 posts

    Hi all, does EE truncate text at roughly 60K characters?

    I have a page of content (which I don’t want to break into multiple pages) that has about 200K of text—how do I get that up?

    Isn’t the container just an arbitrarily sized text blob?

    Thanks,  -Scott

  • #2 / Mar 06, 2009 11:49am

    Ingmar

    29245 posts

    It’s a limitation of MySQL, or more precisely, the used field type. You’ll have to change the field type from TEXT to MEDIUMTEXT. See this thread for reference, this has come up a number of times before.

  • #3 / Mar 06, 2009 11:56am

    turnstyle

    47 posts

    Thanks, bummer—apart from changing the database itself, is there any other way to add a larger chunk of text to a page? (ie, what if somebody can’t change the database itself)

  • #4 / Mar 06, 2009 11:57am

    Ingmar

    29245 posts

    You could use more than one custom field, but I think changing the field type would be the way to go. Even though you should make a backup first, it’s not particularly difficult.

  • #5 / Mar 06, 2009 12:28pm

    turnstyle

    47 posts

    Thanks—fwiw, the problem with changing the database is that we’ve been trying to stick to a vanilla install (keeping all our changes as stuff *within* the database, rather than to the database or application itself).

    Presumably, this is beneficial when it comes to upgrades and/or migrating to another server—ie, do you know if upgrades will safely “respect” that this column now has a new size? (one concern is that the column might later somehow revert to the smaller default size—perhaps along with an upgrade—and thereby truncate our data with it)

    btw, is there a performance downside to the larger column? If not, seems like EE might consider making that a system-wide change…

  • #6 / Mar 06, 2009 12:39pm

    Ingmar

    29245 posts

    I understand why you are hesitant to “hack”, it makes upgrading much more difficult. This is not quite true for changing a field type in the database though, which you’d only do once. Updates should not touch this field, certainly not shrink it: it’s “TEXT” now (65k characters), “TINYTEXT” would only allow 256 which is clearly too little.

    There are space and performance considerations as well, yes, which is why this might not become standard for all fields.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases