Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 530927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:14:52+00:00 2026-05-13T09:14:52+00:00

Is there/has somebody any comparison, personal experience, or guideline when to use the text

  • 0

Is there/has somebody any comparison, personal experience, or guideline when to use the text type instead of a large varchar in MySQL?

While most of the entries in my database will be less than 1000 characters, some might take up to 4000 characters or more. What is the limiting length of varchar which makes text a better variant?

I do not need to index those fields.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:14:53+00:00Added an answer on May 13, 2026 at 9:14 am

    I don’t have personal experience, but this guy does:

    VARCHAR vs. TEXT – some performance numbers

    Quick answer: varchar was a good bit faster.

    Edit – no, it wasn’t. He was indexing them differently – he had a full index on the varchar (255 chars) but a 255-char prefix index on the text. When he removed that, they performed more or less the same.

    Later in the thread is this interesting tidbit:

    When a tmp table is needed for a
    SELECT, the first choice is to use
    MEMORY, which will be RAM-only, hence
    probably noticeably faster. (Second
    choice is MyISAM.) However, TEXT and
    BLOB are not allowed in MEMORY, so it
    can’t use it. (There are other reasons
    why it might skip MEMORY.)

    Edit 2 – some more relevant info, this time comparing the way different indices deal with the various types.

    MyISAM puts TEXT and BLOB ‘inline’. If
    you are searching a table (range scan
    / table scan), you are ‘stepping over
    those cow paddies’ — costly for disk
    I/O. That is, the existence of the
    inline blob hurts performance in this
    case.

    InnoDB puts only 767 bytes of a TEXT
    or BLOB inline, the rest goes into
    some other block. This is a compromise
    that sometimes helps, sometimes hurts
    performance.

    Something else (Maria? Falcon? InnoDB
    plugin?) puts TEXTs and BLOBs entirely
    elsewhere. This would make a
    noticeable difference in performance
    when compared to VARCHAR. Sometimes
    TEXT would be faster (eg, range scan
    that does not need the blob);
    sometimes the VARCHAR would be faster
    (eg, if you need to look at it and/or
    return it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there has to be a way: I need help getting any hot
When I compile our project use Delphi 2010 Trial, there has a fatal error
I have quick question about jQuery plugins, hope somebody out there has some advice.
Somebody has already asked my question about detecting SVG support in browsers but there
Has anybody heard if there is any word on whether we will have compiled
Would there be any big issues if they never expire? Somebody forgot his password
Without writing a custom rdbuf is there any way to use a stringstream efficiently?
There has GOT to be a simple way to programmatically render HTML into a
There has to be a better way of writing the js in my function....
There has been a lot of talk around iPad-Apps / Approval / Store-related Questions.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.