Is DELAY_KEY_WRITE honoured on Maria tables?
If you are using non-transactional Maria tables (CREATE TABLE… ENGINE=MARIA TRANSACTIONAL=0), which are similar to MyISAM, then DELAY_KEY_WRITE works as you expect. If you are using transactional Maria tables (the default), then DELAY_KEY_WRITE is always enabled. In MyISAM and non-transactional Maria tables (which have no logging), by default all the table’s key pages are flushed to the OS at the end of each statement, to guarantee some durability. DELAY_KEY_WRITE removes this flush, giving less durability. In transactional Maria tables, key pages are flushed by a background job, regularly, not necessarily at the end of each statement, and durability is guaranteed thanks to logging.