TkbmMemTable’s CreateIndexes method bahaves differently in 7.62.00 as opposed to 5.01 when creating indexes in a table that has existing records.
In 5.01, the following code would result in a fully populated table, but in 7.62.00 it ends up empty.
The functionality was particularly useful when adding an index to an existing table which contained records was necessary. Now we first need to do a copy of the records somewhere else, create the index and then copy the records back to the original table, which seems to end up using additional memory and time. We also need to modify the existing code to cover for the different functionality.
Is it be possible to achieve the previous original functionality with the current version of the component? Would it be possible with a different approach? Is this considered a bug?
Thanks in advance.
procedure TForm1.Button1Click(Sender: TObject);
kbmMemTable1 := TkbmMemTable.Create(Self);
A difference between the old v5 and the later versions is that the later versions supports indexes based on other indexes, which generally provides way faster performance during range, filtering etc. operations in combination with ordering or grouping.