• Resolved akt01

    (@akt01)


    Hi,

    I have a SQL query that is quite resource intensive to run in real-time especially on a larger table, I’m trying to create a materialized view that I can run every X hours regularly. I understand that MySQL doesn’t support materialized view, I’m thinking to write a stored procedure that create a static table (the “materialized view”), and call this by cron to run periodically to refresh the “materialized view”.

    The built-in wordpress database connector/handler like wpdb doesn’t support multiple statements/procedures. It feels like this is something that could be implemented with WP Data Access.

    I’m wondering if anyone can help give any advice on this, or any alternative suggestions on potentially better ways to implement the “materialized view” are welcome.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘MySQL materialized view’ is closed to new replies.