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

Im thinking this is correct, but probably WAY off. I have a string formatted
I'm thinking about how to approach the problem at hand. There's a flash movie
Just thinking about the best way to build an Order form that would (from
I'm just curious if my way of thinking is incorrect. Would my way of
So what I would like to do is scrape this site: http://boxerbiography.blogspot.com/ and create
What would be the best way to create fluid layout, which would fill the
I'm just thinking about MySQL database design and there are often situations where A
I'm thinking of implementing a Domain Driven Design approach (similar to the one described
Thinking that the answer to this is pretty obvious but here it goes: When
Been thinking about this for hours now. Im building a simple slideshow application, where

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.