Querying an indexed database column. How?
Hi there,
I am pretty good at CF and okay at SQL.
Over the years I have been informed that when using the same column in a database multiple times to do look-ups....e.g. a primary key field....that it would be best to "index" this column to improve speed.
However, I'm not fully sure what or how to index a database column. I have a few questions:
- Is it something to do in MySQL directly? Or can it be done programmatically with CF?
- Does it really speed things up a lot?
- How is new data entered affected? Does that new data get included into the index?
- Does my cfquery syntax have to be any different than is normal?
Any help or advice would be great.
I'm using CF8 and MySQL5 (query browser tools etc)
Thanks,
Mikey.
