Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your company sells fruit baskets online. There exists an ORDERS archive table with the following specification to store all previous orders: CREATE TABLE orders (

Your company sells fruit baskets online. There exists an ORDERS archive table with the following specification to store all previous orders: CREATE TABLE orders ( [order_id] [bigint] NOT NULL, [item_id] [bigint] NOT NULL, [customer_id] [bigint] NOT NULL, [date] [datetime] NOT NULL, [price] [money]NOT NULL, CONSTRAINT [PK_orders] PRIMARY KEY CLUSTERED ( [order_id] ASC ) ) Your website provides customers with the functionality to display all their past orders. The traffic on the website is high and the below query is executed frequently and is extremely slow: SELECT order_id, item_id, date, price FROM orders WHERE customer_id = @this_customer As the main developer of the system (backend and frontend), what can you do to improve the performance of this interface?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions