View Algorithms
Learn about the different algorithms (MERGE, TEMPTABLE, UNDEFINED) MariaDB uses to process views and how they impact performance and updatability.
Last updated
Was this helpful?
Was this helpful?
CREATE ALGORITHM = MERGE VIEW view_name (view_field1, view_field2) AS
SELECT field1, field2 FROM table_name WHERE field3 > '2013-06-01';SELECT * FROM view_name;SELECT field1, field2 FROM table_name WHERE field3 > '2013-06-01'SELECT * FROM view_name WHERE view_field < 8000;SELECT field1, field2 FROM table_name WHERE (field3 > '2013-06-01') AND (field1 < 8000);