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 3489480
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:24:02+00:00 2026-05-18T11:24:02+00:00

Thinking the approach would be to create a hash of the string at a

  • 0

Thinking the approach would be to create a hash of the string at a fixed length and then index the hash. If so, is there a way to do this within MySQL, or does it require me to do some parts of the process outside of MySQL.

Database engine is InnoDB and here’s info on the error I’m getting that appears to be on target.

http://forums.techarena.in/software-development/1185285.htm

Basically trying to use a column that is a natural longtext key as a UNIQUE constraint, meaning that an insert transaction is rolled back if the column field is not unique. The column can be 80 to 150 thousand characters in length.

  • 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-18T11:24:03+00:00Added an answer on May 18, 2026 at 11:24 am

    Generally UNIQUE indexes on TEXT/LONGTEXT/BLOB fields are not a good idea as MySQL is not capable of having an arbitrary length index. You either have to specify a maximum number of characters (eg. UNIQUE (fieldname(255)) – I believe 4005 is the current limit for UTF8, 1000 regular), limiting the field length (in which case you might as well make it a VARCHAR), or remove the UNIQUE index.

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

Sidebar

Related Questions

I'm experimenting with a personal finance application, and I'm thinking about what approach to
I am thinking on the following approach but not sure if its the best
I'd appreciate some feedback on a particular approach I'm thinking of using. The scenario
Thinking in regards to Sliverlight, I would like to know where would be good
Thinking about my other problem , i decided I can't even create a regular
While thinking about this question and conversing with the participants, the idea came up
I'm thinking of the best way to store personal contacts in a database for
I was thinking of this the other day, apps like Twitter deal with millions
This may be the wrong approach, but as I dig deeper into developing my
I have been thinking about the best way to calculate the amount of on-hand

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.