Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
When you change the justification of a column, is the index rebuilt?
Does changing the justification of an indexed column automatically rebuild the index? I ask because the keys returned by btree.extract when the column was right justified were different to the keys returned by btree.extract when the column was left justified. How could this have happened without an index rebuild? I used the >= operator.
Comments
>>Does changing the justification of an indexed column automatically rebuild the index?
No
It is up to you to schedule a rebuild
Therefore I assume the formatting of the keys list uses the dict format. A rebuild would only be be required if the format change of the key field affected the search. i.e. using alpha search of numeric data. (or some such)
I will now bow out and leave to others with more tecnical knowledge explainations.
It just so happens that both justifications result in a btree structure(ordering) that is correct for my use case, but the btree extract must be using the number definition of >= rather than lexical definition, so that's the difference.
I am trying to get all keys that start with G3...
Using the "number" >= doesn't work, but lexical >= does. The btree structure itself doesn't change though.