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 System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Step 1: Introduction

The question at hand is the essential topic of optimizing MS SQL Server for maximum database performance. It investigates the effects of altering SQL Server memory settings and attempts to establish if decreasing or increasing memory allocation enhances or degrades query performance. The analysis seeks to offer insight on why these changes have the effects that they do and, finally, proposes which strategy users should prioritize for their tuning efforts. This is an important concern for SQL Server database administrators and developers, as performance optimization can have a substantial impact on the efficiency and responsiveness of database-driven applications.

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.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education