Each InnoDB table organizes the data on the data carrier . This slows down access a bit, but improves security, as each table is optimized with a primary key. Selecting data is relatively faster, but adding and updating it is slower. For this reason, InnoDB is a storage engine for MySQL especially suitable for large databases , in particular, when a lot of data is interlaced.
As already mentioned, the data for each transaction in InnoDB is intertwined. When deleting some data, InnoDB also automatically deletes all referenced data. This makes it much easier for the user to maintain the referential integrity of the database . However, referential integrity must be defined beforehand, because it is not automatically maintained otherwise. In the same way, write access to data records can be blocked.
The InnoDB tabular structure is stored in FRM files , usage data and indexes, in a table space associated with the database that can span one or more files. Referential integrity also applies here: the table space configuration can be spread across different directories, but this must be set at the beginning of the job and cannot be changed . Working with an InnoDB table is in this respect like working with a partition on the hard disk, where, if later changes are made, data can be lost.