We have two tables which receive 1 million+ insertions per minute. This table is heavily indexed, which also can’t be removed to support business requirements. Due to such high volume of insertions, we are seeing PAGELATCH_EX and PAGELATCH_SH. These locks further slowdown insertions.
I could solve that using approach described in Removing PAGELATCH with randomized ID instead of GUID
My real question is:
One of nonclustered indexes on table is based on record insertion date henceforth that is also inserting sequential data. We see PAGELATCH_EX and PAGELATCH_SH because page gets locked due to insertion of sequential data. But why am I not seeing PAGELATCH_EX and PAGELATCH_SH on non clustered index with sequential keys?