Hi,
I have a pretty sizeable table, nothing massive but big enough to warrant an index being created on what would be the "foreign key".
The thing is that each day my program runs and it rebuilds the index and then drops it when it is completed, a process which takes about a minute, and I was wondering if this is being wasteful, and if in fact the index can just remain in place all the time? Will MySQL maintain the index as records are added/removed from the table? Or do I have to re-create the index before processing every day?
Thanks
Jo
I have a pretty sizeable table, nothing massive but big enough to warrant an index being created on what would be the "foreign key".
The thing is that each day my program runs and it rebuilds the index and then drops it when it is completed, a process which takes about a minute, and I was wondering if this is being wasteful, and if in fact the index can just remain in place all the time? Will MySQL maintain the index as records are added/removed from the table? Or do I have to re-create the index before processing every day?
Thanks
Jo