Execute dml , refresh materialized view

Hi…

I have materialize view in postgres and I want it to refresh after an Entity has been commited

I try execute dml sql "refresh materialized view " using datamanager but it is fail, Does dml can be executed via datamanager ?

Thanks

Hi,

Native SQL can be executed only using EntityManager and Query on middleware: https://doc.cuba-platform.com/manual-6.9/nativeQuery.html