Canary Testing
Explore strategies for safely testing schema and application changes using canary deployments, replication, and features like invisible columns.
Database Naming
Views
MariaDB> USE prod_v2;
MariaDB> CREATE VIEW `orders_t` AS
SELECT `order_id`, `order_date` FROM `prod_v1`.`orders_t`;MariaDB> USE prod_v2;
MariaDB> CREATE TABLE `orders_t`(
`order_id` INTEGER NOT NULL PRIMARY KEY,
`order_date` DATETIME NOT NULL,
`customer_id` INTEGER NOT NULL DEFAULT 0);
MariaDB> INSERT INTO `orders_t` SELECT `order_id`, `order_date`
FROM `prod_v1`.`orders_t`;
MariaDB> USE prod_v1;
MariaDB> RENAME TABLE `orders_t` TO `orders_t_v1`;
MariaDB> CREATE VIEW `orders_t` AS
SELECT `order_id`, `order_date` FROM `prod_v2`.`orders_t`;Replication
Invisible Columns
See Also
Last updated
Was this helpful?

