重现步骤

[步骤]

CODE:N2032118
Error:11_-2_0_-2146232060
SQL:  SELECT  TOP 200  
                                      alias.ID  as Id,
                                      alias.CustomerID,
                                      b.OrderSourceCountry AS Country,
                                      alias.OrderSourceId,
                                      b.OrderSourceName AS OrderSourceName,
                                      sb.OrderSourceSKU  AS OrderSourceSku,
                                      sb.SKU AS Sku,
                                      alias.[Subject] AS  Title,
                                    (select stuff((select ','+AttrValue from RB_AliExpress_Listing_ProductProperty (nolock) c where (c.AttrValue <>'' or c.AttrValue IS NOT NULL) AND c.ListingID= alias.Id for xml path('')),1,1,'')) as Attributes,
                                   alias.Detail AS  [Description],
                                   alias.OnlineState     AS Status
                                FROM    [RB_AliExpress_Listing] AS alias WITH ( NOLOCK )
        LEFT JOIN RB_AliExpress_Listing_SKU  ( NOLOCK ) AS sb ON alias.ID=sb.ListingID
        LEFT JOIN RB_OrderSource  ( NOLOCK ) AS b ON alias.OrderSourceID=b.Id
                        WHERE   alias.[CustomerID]=1  AND alias.OnlineState <>2 AND alias.UpdateTime >= '2023/6/2 15:03:23' AND alias.UpdateTime < '2023/6/4 15:03:23' AND alias.ID>0 ORDER BY alias.ID ASC; 
PARAMS:
MESSAGE:执行超时已过期。完成操作之前已超时或服务器未响应。 
TRACE:   在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   在 System.Data.SqlClient.SqlDataReader.get_MetaData()
   在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
   在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)   在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
   在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)
   在 RB.DALExtend.Generate.RB_AliExpress_ListingExtend.GetAliExpressPlatformListing(Int32 customerId, DateTime updateBeginTime, DateTime updateEndTime, Int64 maxId, Int32 pageSize)
   在 Biz.InfringingWords.AliExpressPlatformInfringingWordsService.GetAliExpressListingDataUpload(RB_BusinessToOpenSearch_Sync syncModel)
   在 Biz.InfringingWords.InfringingWordsService.UpdateSyncConfig(Int32 customerId, String type, Func`2 func)
   在 System.Collections.Generic.List`1.ForEach(Action`1 action)
   在 ChinaDownLoadImage.Task.InfringingWords.Task_AliExpress_InfringingWords.Execute()
   在 RB.Utility.SystemTask.<doTask>b__43_0()
   在 System.Threading.Tasks.Task.Execute()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

本语句查询 通过ID排序 无法使用 上 系统索引 IX_RB_AliExpress_Listing_CustomerID_UpdateTime

[结果]


[期望]

修改ID排序 为 updatetime 或者 删除 top 200 以提升性能


历史记录  
  1. 2024-04-08 21:03:10, 由 袁慧斌 创建。
  2. 2024-04-09 09:16:27, 由 李乐同 指派给 朱思文。
    修改了 指派给,旧值为 "liletong",新值为 "zhusiwen"。
  3. 2024-04-09 09:26:06, 由 李乐同 指派给 韦思成。
    修改了 指派给,旧值为 "zhusiwen",新值为 "weisicheng"。
  4. 2024-04-11 17:32:25, 由 韦思成 解决,方案为 历史bug(180天以上) 。
    修改了 解决方案,旧值为 "",新值为 "history"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2024-04-11 17:29:50"。
    修改了 指派给 ,旧值为 "weisicheng",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "weisicheng"。
    刊登系统有侵权词功能,且这个侵权词AliExpressListing数据推送服务从 2023年6月2日到现在都没有成功过,没有相关业务功能反馈问题,和产品沟通,将此服务关闭
  5. 2024-04-11 18:25:25, 由 袁慧斌 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yuanhuibin"。
    修改了 关闭日期,旧值为 "",新值为 "2024-04-11 18:25:25"。
所属项目 技术中心-需求池
所属模块 多平台   Aliexpress
所属计划
所属迭代
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人 韦思成
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2024-04-11 18:25:25
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2024-04-08 21:03:10
影响环境 577
由谁解决 韦思成 于 2024-04-11 17:29:50
解决版本 主干
解决方案 历史bug(180天以上)
由谁关闭 袁慧斌 于 2024-04-11 18:25:25
最后修改 袁慧斌 于 2024-04-11 18:25:25
相关Bug