In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX table1_idx_orderid_isactiv_serialn_isprint ON Table1 (OrderID,IsActive,SerialNumberDate,IsPrinted);
SELECT
Table1.UnitSerialNumber
FROM
Table1
WHERE
Table1.OrderID = 1234
AND Table1.IsActive = 1
ORDER BY
Table1.SerialNumberDate,
Table1.IsPrinted