Sha256: fa8f460652cf2a88f292d57e32155218c18777c71131c7759b200db754f40def
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 Bytes
Contents
# Ideas de https://www.sitepoint.com/speed-up-with-materialized-views-on-postgresql-and-rails/ module Msip class Mundep < ActiveRecord::Base self.table_name = 'msip_mundep' def readonly? true end def self.refresca() if ActiveRecord::Base.connection.data_source_exists? 'msip_mundep' ActiveRecord::Base.connection.execute( 'REFRESH MATERIALIZED VIEW msip_mundep') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | app/models/msip/mundep.rb |
msip-2.2.0.alfa2 | app/models/msip/mundep.rb |
msip-2.2a2 | app/models/msip/mundep.rb |