Quote:
|
Originally Posted by dav1mo
Are you searching for how the varchar begins or searching for some string within the column? If it's a string within the varchar and its always in the same position you may want to think about putting that into its own column, then put an index on that new column.
|
The varchar field might have 50 key/value pairs and i'm looking for the value of a particular key. (eg. the 20th set).
The key won't be in the same position every time in the field either, so i can't go straight there.
I know that if i create a new table and extract these field into that new table with an index on the key then it will be great. However, i'm trying to stay away from changing the db schema.
any other suggestions?
mav.