SELECT *FROM ( SELECT resource_name; resource_tag; serial_number; host_name; mac_address; dna_name; ROW_NUMBER() OVER(ORDER BY audit_trail_date) ROW_NUMBERFROM aud_ca_owned_resourceWHERE owned_resource_uuid = @p1AND asset_source_uuid = @p2 )SUBQUERY_ALIAS__WHERE ROW_NUMBER__BETWEEN @START_ROW_NUMBER and @END_ROW_NUMBERCA Asset Portfolio Management/IT Asset Manager 17.3 and 17.4
SQL Server MDB
Add the the following index to the aud_ca_owned_resource MDB table
CREATE NONCLUSTERED INDEX [idx_ca_owned_resource] ON [dbo].[aud_ca_owned_resource]
(
[own_resource_uuid] ASC,
[asset_source_uuid] ASC
)
INCLUDE([resource_name],[host_name],[mac_address],[resource_tag],[serial_number],[dns_name],[audit_trail_date])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
Note: SQL wait times will be minimized, but not eliminated