In 200-400 words, evaluate whether decreasing/increasing the Memory provided detriments/benefits in query performance, why it made that impact/did not make that impact, and determine which of the two readings you’d recommend to users to base their tuning on.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter7: Introduction To Structured Query Language (sql)
Section: Chapter Questions
Problem 97C: The following tables provide a very small portion of the data that will be kept in the database....
icon
Related questions
Question

This assignment is aimed at building an understanding of how to improve performance within databases by taking advantage the computers hardware by modifying MS SQL settings

Prerequisites:

Completion of Assignment 1B, reading of Module Readings and Slides.

Run the following query to understand how much Memory is currently in use in the database:

SELECT

  physical_memory_in_use_kb/1024 AS sql_physical_memory_in_use_MB,

   large_page_allocations_kb/1024 AS sql_large_page_allocations_MB,

   locked_page_allocations_kb/1024 AS sql_locked_page_allocations_MB,

   virtual_address_space_reserved_kb/1024 AS sql_VAS_reserved_MB,

   virtual_address_space_committed_kb/1024 AS sql_VAS_committed_MB,

   virtual_address_space_available_kb/1024 AS sql_VAS_available_MB,

   page_fault_count AS sql_page_fault_count,

   memory_utilization_percentage AS sql_memory_utilization_percentage,

   process_physical_memory_low AS sql_process_physical_memory_low,

   process_virtual_memory_low AS sql_process_virtual_memory_low

FROM sys.dm_os_process_memory; 

 

Instructions:

Part A: Query Baseline

Execute the following query, and record the runtime. It can be seen on the bottom of the screen next to the number of rows.

  1. Select * From Student Join Enrollment on Student.ID = Enrollment.Student_ID Order by Name_Last desc

Total execution time:00:00:14.924

Part B: Upping the RAM

  1. Run the follow query to increase the set the RAM available to the database to something higher than what you saw in the sql_physical_memory_in_use_MB column on the query above. You’ll need to see how much Memory your particular device has to set this correctly, but the below example will show an increase to 8GB
    1. sp_configure 'show advanced options', 1;

GO

RECONFIGURE;

GO

sp_configure 'max server memory', 8192;

GO

RECONFIGURE;

GO

;

  1. Note the above query is 8GB. If you want to go to 4 GB, divide that number by 2, or 16 GB multiply by 2, but it is dependent on your PCs available memory
  1. You must Restart your PC for this to take effect

Part C: Re-Run Query Baseline in Part A

  1. Re-Run the Query from Part A and evaluate if the speed to execute it increased or decreased

Submission:

In 200-400 words, evaluate whether decreasing/increasing the Memory provided detriments/benefits in query performance, why it made that impact/did not make that impact, and determine which of the two readings you’d recommend to users to base their tuning on.

reading:https://www.sqlservertutorial.net/sql-server-basics/sql-server-primary-key/ 

https://www.sqlshack.com/dont-fear-sql-server-performance-tuning/

Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr