Skip to main content

Questions tagged [materialized-view]

Defined like a view but holding persistent data like a table, Materialized Views are a feature of a number of RDBMSs including Oracle, DB2 and postgres. SQL Server has a similar feature called an Indexed View that is considered similar enough to come under this tag.

1 vote
2 answers
303 views

I have a query that retrieves data from a complex data structure involving multiple tables. The data can be filtered using a tree component that allows selection of different keys from different ...
Sotem's user avatar
  • 19
1 vote
1 answer
77 views

Immediately after refreshing a materialised view in Postgres I'd like to know how many rows are in it. Currently I do this by running a 2nd SQL command (SELECT count(*) FROM...) Is there a more ...
ConanTheGerbil's user avatar
0 votes
1 answer
109 views

I am building some API endpoints backed by materialized views (I am using Ruby on Rails). The data is from Quake Live and it basically contains game stats (weapon accuracy, damage dealt, etc). I want ...
devamat's user avatar
  • 111
2 votes
1 answer
145 views

I have a materialize view that I update using REFRESH MATERIALIZED VIEW CONCURRENTLY my_view using a Kubernetes cronjob that runs every 15 minutes. I'm experiencing a problem where it seems there are ...
Danielle Hanks's user avatar
0 votes
0 answers
315 views

I am querying the indexed view with aggregate function WITH(NOEXPAND) hint. SELECT MIN(Column) FROM dbo.vwi_indexed_view WITH(NOEXPAND); I am getting Columns With No Statistics warning inside the ...
jericzech's user avatar
  • 977
2 votes
1 answer
329 views

At work we're thinking about adding a Postgresql replica. We were wondering whether it's possible to create views and materialised views directly on the replica.
marcosh's user avatar
  • 265
0 votes
1 answer
267 views

I am a Postgres 15.3 AWS RDS instance and have a database that centers around one table, called posts that has 20 other relations to build the full object. The full query is about a second altogether ...
Frank Conry's user avatar
1 vote
0 answers
94 views

I build a PostgreSQL database for movie db platform. This DB is heavy loaded for readings of many related data. Here is simplified schema what I have: create table items ( id ...
Dmitry K.'s user avatar
  • 143

15 30 50 per page
1
2 3 4 5
20