Demonstrations of MariaDB patterns.
Demonstrates discrete records (order_items) while supporting inserting a record with a count (order_items_qty.quantity).
Combines BLACKHOLE engine with a BEFORE INSERT trigger to transparently insert order_items_qty.quantity number of records into order_items.
Note that order_items_qty should match the schema of order_items with one new field, order_items_qty.quantity.
git clone https://github.com/acrois/mariadb-examplesdocker compose up -ddocker compose down --remove-orphans --rmi local -v