![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
mySQL: Changing unique database to fulltext
Basically I have a huge 100mb wordlist of unique strings that I'll soon be entering into my database. The problem is, I also will be adding these strings after making all of them uppercase, and mySQL assumes that 'ABC' is the same as 'abc' which makes adding the same uppercase list impossibly without making it a fulltext database instead of Unique. Here in lies the problem... This database will also be receiving words from users that submit them from my site, but I don't want this database to be filled with duplicate words unless they have some different case in them like: 'abc', 'aBc', 'ABc' etc...
is there ANY way to get around this at all? EDIT: I also need some new way to get the size of a table without doing mysql_num_rows. I expect this database to be around 15 million unique strings when it's done, and mysql_num_rows take forever to do with only 1 million. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
Yes, there is a way to make it case sensitive...
create table whatever (
"unique_string" varchar(255) BINARY UNIQUE,
... etc etc etcNote the use of the BINARY option...
__________________
|
|
|
|
|
|
#3 |
|
Expert Programmer
|
Got to be carful with that, by using BINARY you are no longer really working with strings, more so than large blobs of byte arrays.
This will not work properly with UNICODE too, though it doesn't seem like that is much of a concern, just though I would point it out.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|