我正在使用 Outlook VSTO高级搜索功能从它们各自的PR_MESSAGE_ID中搜索邮件列表。
我的查询看起来像
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId1' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId2' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId3' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targgetId4' ...etc.
我质疑这种方法的性能,我想知道是否有更优雅的查询,类似于SELECT something WHERE 'MESSAGE_ID' IN (targetId1, targetId2, etc.)