InnoDB foreign keys and MySQL partitioning are not compatible. Partitioned InnoDB tables cannot have foreign key references, nor can they have columns referenced by foreign keys. InnoDB tables which have or which are referenced by foreign keys cannot be partitioned.
这么遗憾的局限,数据量大的时候,分区很必要,关系需要约束时,外键也很必要。想知道高手们在碰到这类问题是如何解决的?难道分区后用触发器?