Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started