Skip to main content
Solved

What are 'Snapshot' views and how to use them?


Mark Jongeling
Administrator
Forum|alt.badge.img+23
As developer we are given some data model table types, namely making a Table, a View or a Snapshot. In the documentation it only says "In a snapshot, just as in a view, data from one or more tables can be combined, though in a snapshot this data is actually saved."

I am unsure how to use it and do not really have the time to experiment with it. Is there someone that can show me what a Snapshot is, what it does, how to set it up (in depth preferably) and what advantages (and maybe disadvantages) it has?

Thanks in advance!

Best answer by Jasper

Snapshots are views whose results are physically stored in a table to improve performance. On DB2 these are called Materialized Query Tables, on Oracle Materialized Views and on SQL Server Indexed Views.

For Oracle and DB2 we have been supporting snapshots for quite some time, but for SQL Server we haven't come to develop it yet.

If you think you need this for SQL Server projects, please read through the limitations and requirements first. And if you still want it, feel free to submit an idea 😉.
View original

Jasper
Superhero
  • July 17, 2019
Snapshots are views whose results are physically stored in a table to improve performance. On DB2 these are called Materialized Query Tables, on Oracle Materialized Views and on SQL Server Indexed Views.

For Oracle and DB2 we have been supporting snapshots for quite some time, but for SQL Server we haven't come to develop it yet.

If you think you need this for SQL Server projects, please read through the limitations and requirements first. And if you still want it, feel free to submit an idea 😉.

Mark Jongeling
Administrator
Forum|alt.badge.img+23
Thanks Jasper for explaining! We will discuss the need of Snapshots in our project and submit an Idea if we want to use it.

Forum|alt.badge.img+2

Hi @Jasper ,

Any updates on this topic? We would like to use snapshots to improve performance as some calculated columns / views take long to load. However, we cannot find much information on this topic in the documentation.

Thanks!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings