We use MS Sql persistence and have index generated for Outbox_Create_sql that contains an index as Index_DispatchedAt. However, our RDS is still marking all OutboxData queries with
CREATE INDEX missing_index_6_5
ON [OurService].[NServiceBus].[OutboxData ([Dispatched],[DispatchedAt])
We observe that the script is executed in each deployment and the index is there. However, we believe the current index in the generated sql is not fully correct:
create index Index_DispatchedAt
on ' + @tableName + '(DispatchedAt) where Dispatched = 1;
Do we miss anything? Any insights?
Thanks in advance.
Hi, we are using the query suggested in here to measure the perf:
My security limitations unfortunately not letting me to post an image to this site. But, as I mentioned, we are seeing for several services of ours the following suggestion: CREATE INDEX missing_index_6_5 ON [OurService].[NServiceBus].[OutboxData ([Dispatched],[DispatchedAt])
As I said in my original message, we can observe that there is an index generated already. So, I am not sure what good it will do to try with a different version of the lib. From what I can tell, the script has not been changed in your end for a very long while. Also, we are not on NServiceBus 8 yet, so we cannot really test it with NServiceBus.SqlPersistence 7.x, right?
We have constant failures on outbox cleaning, popping up as errors in our logs. No customer impact that we know of, but that could potentially be the root cause.
Thanks for the update, I’ll be monitoring for a release / update.