Author: R.Laverick (26 Apr 07 6:37am)
Not sure what DB you're using in the back end, but an index can be on a partial samples, to use your numbers in a mysql form (example inspired by of http://www.devshed.com/c/a/MySQL/Optimizing-for-Query-Speed/4/ )
CREATE TABLE t
(
name CHAR(1024),
INDEX (name(55))
);
or you could even use the text type so there is no limit.
CREATE TABLE t
(
name TEXT,
INDEX (name(55))
);
as a third alternative you could always have another table with everything stored as TEXT which is the primary data repository and then use you're current truncated table for most usage and then the full data table via common keying.
Post Edited (26 Apr 07 6:45am)
|