INDEX on desc TAG desc (i.e. as simple as can be)
Dan
Email: dmusicant at pacbell dot net
Index expressions are evaluated before they're stuffed into the Btree,
and the evaluation isn't a 1:1 character length equivalent. Sometimes
an expression can evaluate to longer than the 100-byte limit on index
expressions.
We've all had complex index expressions that work just fine until a
data condition makes the expression evaluate to somethimg the index
engine can't handle. This is the same thing.
The limit isn't on the length of the data field, it's on the evaluation
of the index expression and that evaluation is a bit fluid.
Dan
Dan Musicant explained :
^^^^ ^^^^
"desc" is a reserved word.
The limit is not 254. From the docs:
"Maximum # of bytes per index key in a non-compact index3.
100
Maximum # of bytes per index key in a compact index3.
240
...
3 If the collating sequence is set to MACHINE, each character uses one
byte. If the collating sequence is not set to MACHINE, each character
uses two bytes. If the indexed field supports null values, one
additional byte is used in the index key. Note that non-machine
indexes are always compact."
Sincerely,
Gene Wirchenko