I have a serialized array in the value field of key_value
, to which I constantly what to append values. An easy way to do this is to get the array, append the new value, and reinsert it. However, with a large enough array it's quite inefficient and in theory it can be done on an SQL level.
What's the correct way to do this in Drupal 8? Is there a way that does not involve getting and then setting the array?