Hi all,
I've encountered this discussion related to FK's and web applications. Basically some people say that FK's in web applications doesn't represent a real improvement and can even make the application slower in some cases.
What do you guys think, what's your experience?
edit : note that I'm aware of FK's job and objective, I'm just not sure if they would have a significant negative impact on the performance of a web application like youtube or something similar.
--
A quote from Heikki Tuuri, creator of InnoDB engine, founder and CEO of Innobase:
InnoDB checks foreign keys as soon as a row is updated, no batching is performed or checks delayed till transaction commit Foreign keys are often serious performance overhead, but help maintain data consistency
Foreign Keys increase amount of row level locking done and can make it spread to a lot of tables besides the ones directly updated