# Foreign Key constraint

**URL:** <https://forums.percona.com/t/foreign-key-constraint/1249>\
**Category:** Other MySQL® Questions\
**Created:** [August 28, 2009, 5:42am UTC](https://forums.percona.com/t/foreign-key-constraint/1249 "2009-08-28T05:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ervaneet82](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@ervaneet82](https://forums.percona.com/u/ervaneet82)\
**Post date:** [August 28, 2009, 5:42am UTC](https://forums.percona.com/t/foreign-key-constraint/1249/1 "2009-08-28T05:42:40Z")

</div>

Hi All,

Foreign key constraint is implemented in MYISAM. As I read that it is supportable in innodb and innodb storage engine taking a lot of memory which is slow down the response of mysql.

There is any way to do it.

---

<div class="post-metadata">

**Author:** ![istvan.podor](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/istvan.podor/32/16879_2.png) [@istvan.podor](https://forums.percona.com/u/istvan.podor)\
**Post date:** [November 22, 2009, 6:10am UTC](https://forums.percona.com/t/foreign-key-constraint/1249/2 "2009-11-22T06:10:53Z")

</div>

Hi,

FK not supported in myisam )

Myisam takes a lots of memory too. Innodb using a different mechanism to store and retrieve data. If something using much more memory (and its not a PC game), that should mean its store more information in a very fast container and can give it back to you very fast, isn’t it?

And of course, innodb can be limited and able to eat up less memory like myisam do. And there are the clustered indexes.

Sorry but I have to say, keep learning )
