logupdate need an index on msgid for reasonable performance