My Oracle Support Banner

High Memory Consumption With Foreign Key Cascades in MySQL< 5.7.21 (Doc ID 2335142.1)

Last updated on DECEMBER 12, 2017

Applies to:

MySQL Server - Version 5.7 to 8.0 [Release 5.7 to 8.0]
Information in this document applies to any platform.


mysqld consumes a far higher than expected mount of memory when performing DML that modifies many rows via foreign key delete/update cascades.



 This issue only occurs in MySQL 5.7 (up to and including 5.7.20). What triggers the problem is doing bulk updates via cascaded foreign keys.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.