Why doesn't MySQL's MyISAM engine support Foreign keys?
-
Kindly tell me, In this situation what engine I have to use for improve performance?
The performance of each storage engine will depend on the queries you perform. However, be aware that different tables within the same database can use different storage engines.
-
Why MyISAM engine does not support foreign key relationship and InnoDB does?
As documented under Foreign Key Differences:
At a later stage, foreign key constraints will be implemented for
MyISAM
tables as well.Therefore, foreign key constraints have simply not yet been implemented in
MyISAM
.
EDIT: As that comment is removed from docs, it appears that it is no longer planned to implement foreign key constraints in MyISAM
engine.
-
Why MyISAM engine does support full text search and InnoDB does not?
As documented under What Is New in MySQL 5.6:
You can create
FULLTEXT
indexes onInnoDB
tables, and query them using theMATCH() ... AGAINST
syntax.Therefore, full text search has been implemented in
InnoDB
as of MySQL 5.6.
I do remember the times when mysql had only myisam and innodedb was in development. MyIsam has no foreign keys because it is old system that does not support relations in database. It will never use foreign keys! To Use it you have innodb. If you don't need all stuff, like relations in DB, use MyISAM to get better performance.