We have a transacations log table dbo.LOG
that has 8M rows in it. We add about 25k rows to the table on a daily basis.
Edit
Ther are no triggers on this table.
Indices:
/* LogId is INT */
ALTER TABLE [dbo].[Log] ADD CONSTRAINT [Log_PK] PRIMARY KEY NONCLUSTERED
(
[LogID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/* ClientPostingDateTime is datetime */
CREATE NONCLUSTERED INDEX [IX_Log_ClientPostingDateTime] ON [dbo].[Log]
(
[ClientPostingDateTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF,
DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/* TransactionTypeCode is INT */
CREATE NONCLUSTERED INDEX [IX_Log_TransactionTypeCode] ON [dbo].[Log]
(
[TransactionTypeCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF,
DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
The insert/updates are coming from a ASP.NET web site on a different server. Both the web server and the SQL server are in the same physical location (possibly on the same rack).
The web site call to the database is timing out. Upto 25 edits (INSERTS / UPDATES) are timing out on this every day.
How do I go about identifying and fixing this issue?