re: SQL 201: Speed up your queries with Indexes VIEW POST

re: Keep in mind, that indexes are only useful if you have a high variance in your data, like username or firstname, lastname. Something that is limite...

It's not always true. Selective index is good but if you not index on column in foreign key you may can get big problem with locks.


Of course. For example table2 have column colF and foreign key to table1. If on colF not indexing and while table1 (any data) change we have exclusive table lock on table2. It's true for Oracle.
I have this problems many times.

Cool, thank for sharing! I guess its kind if database agnostic, good to know for oracle! ✌️😊

code of conduct - report abuse