Question

In: Computer Science

Views are virtual in database but Materialized view are persistent. Discuss the need to have materialized...

Views are virtual in database but Materialized view are persistent. Discuss the need to have materialized view instead of views and in what condition No materialization if preferred.

Solutions

Expert Solution

Views :

  • Views are similar to the tables in database, but the views are virtual, they are not stored anywhere in the database (but the query expression is stored).
  • Consist of rows and columns.

Materialized view :

  • Also similar to tables in database, but they are not virtual.
  • Here the data is stored in the database.

The need to have materialized view instead of views :

  • When we have to use a view frequently, we use materialized view instead of view.
  • Using materialized view reduces the computation time, because in materialized view datas are stored in database.
  • Materialized view is also used in the case where a view is defined is large, and result is very small.
  • If we have a case in which, when we update the table from which a view is derived the view also need to be updated, we use a materialized view.
  • For faster access of data materialized view is preferred.

In what condition no materialization is preferred :

  • No materialization is preferred in the situations where we need to minimize the usage of disk spaces. Materialization will duplicate the data already stored in the database which will increase the space usage.

Related Solutions

lab requires you to use Oracle VIEW to implement a virtual database on DBSEC schema, for...
lab requires you to use Oracle VIEW to implement a virtual database on DBSEC schema, for example, on CUSTOMER table. Your task is to develop a single SQL script that will perform all the following tasks: Table created for this assignment is listed below: create table CUSTOMER_VPD( SALES_REP_ID NUMBER(4), CUSTOMER_ID NUMBER(8) NOT NULL, CUSTOMER_SSN VARCHAR(9), FIRST_NAME VARCHAR(20), LAST_NAME VARCHAR(20), ADDR_LINE VARCHAR(40), CITY VARCHAR(30), STATE VARCHAR(30), ZIP_CODE VARCHAR(9), PHONE VARCHAR(15), EMAIL VARCHAR(80), CC_NUMBER VARCHAR(20), CREDIT_LIMIT NUMBER, GENDER CHAR(1), STATUS CHAR(1), COMMENTS...
moral relativism is the view that people have different moral views there are no moral truths...
moral relativism is the view that people have different moral views there are no moral truths what is right is relative to different people or groups according to what they considerright one problem for cultural relativism is that the view makes it conceptually impossible for a culture to change for the better nobody can know what is really morally true no single culture’s moral opinions are privileged as objectively correct normative Ethics is concerned with how we ought to act,...
There are different views on the causes of inflation. While the standard view is that inflation...
There are different views on the causes of inflation. While the standard view is that inflation is a monetary phenomenon, others emphasise the impact of fiscal policy. a. Explain how inflation is related to the money supply according to the quantity theory of money. Motivate your answer using equations. b. Explain how inflation may be triggered by fiscal considerations, e.g. a desire to increase government spending. Motivate your answer by formulating the government’s budget constraint.
Discussion Using a Database Management System View “The database tutorial for beginners” on youtube(5:32 mints) and...
Discussion Using a Database Management System View “The database tutorial for beginners” on youtube(5:32 mints) and discuss how database management systems are different from spreadsheets. Describe one experience you have had working with data.
Discuss the impact of Storage on Virtual Machines
Discuss the impact of Storage on Virtual Machines
I already have a database in phpMyAdmin and need to create an html/php "SEARCH" page to...
I already have a database in phpMyAdmin and need to create an html/php "SEARCH" page to retrieve the information from the database on to my localhost. Please post a php/html code that will create a search page and return the data from my phpmyadmin database. The 3 items I have on the database are first_name, last_name and birth_day.
1)The world will never become completely virtual because: A) The need for power B) The need...
1)The world will never become completely virtual because: A) The need for power B) The need for uniqueness C) The need for affiliation D) The need for safety 2)Frito Lay decreased the price of its potato chips from $4.80 to $4.76. What does JND (Just Noticeable Difference) Theory tell us about the possible perception of this price decrease?
Discuss the advantages and disadvantages of utilizing virtual teams.
Discuss the advantages and disadvantages of utilizing virtual teams.
Discuss how database systems have revolutionised decision making and reporting practices.
Discuss how database systems have revolutionised decision making and reporting practices.
• Describe your view of the current economic and investment market conditions and justify your views...
• Describe your view of the current economic and investment market conditions and justify your views with facts
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT