https://www.php-resource.de/forum/sql-datenbanken/104239-mysql-ring-buffer-best-practice