Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is possible to Cache a Mysql View?

I’have a mysql view that is taking a bit too long, I know i can set a cache globally with mysql but I want to cache only one specific view is that possible ?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You cannot cache a view but you can create a table that would save that record permanently.

You will be able to access the same dataset without waiting for the execution of the conditions of the view.

CREATE TABLE my_view_cache as SELECT * FROM my_view;
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading