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

  • Home
  • SEARCH
  • 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 187255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:47:29+00:00 2026-05-11T15:47:29+00:00

I have a TEXT column in a MySQL DB. The app is like a

  • 0

I have a TEXT column in a MySQL DB. The app is like a blog and the col contains the body of the ‘posts.’ I will be doing a lot of complex boolean searches on this column.

The MySQL docs say you need to set the index length for TEXT columns with a max length of 767 bytes for InnoDB tables.

Should I just set it to the maximum length? Is it better to make it less than that?

  • 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. 2026-05-11T15:47:30+00:00Added an answer on May 11, 2026 at 3:47 pm

    It depends what you will have in it.

    I suspect from your question that you are imagining that an index on a column can do things that it cannot. A conventional index is not a full-text index and can’t be used to find words, or any substring match other than a prefix. Database indexes are used to find an exact value, or a range of values only – they can’t perform arbitrary matching.

    Assuming you were going to use an index for something it can do, then the length should be the shortest length that lets you have sufficient specificity that you can find the rows you want without reading too many of them. How long that is depends on the contents of your table, for example if your table has many rows with the same prefix, the index needs to be longer than that similar prefix to avoid putting them into the same index entry – meaning that they all need to be searched.

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

Sidebar

Related Questions

I have saved input from a textarea element to a TEXT column in MySQL.
I have a text column with repeated values, for example: | A | ---|---------|
I have a table with a TEXT column where the contents is just strings
I have problem when I try insert some data to Informix TEXT column via
I am using SQL Server 2005. I have a table with a text column
I have a textbox with the Text property bound to a dataset column with
I have a sproc that returns a single line and column with a text,
In a project we have text files looking like this: mv A, R3 mv
I have a MySql table which has a timestamp column. The table also has
I have a MySQL database and a table which has a names column as

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.