收件箱项目将拥有收件箱缓存中的所有记录,并查找该收件箱(对话)的最新聊天项目并获取其文本。 这是我目前拥有的sql语句。SELECT ch.ConversationID, Max(ch.Time) As Date, ch.Text, ic.SenderMessageName, ic.IsReader FROM ConversationHistoryDocumentch.ConversationID ='{conversationId}' GROUP BY ch.ConversationID ORDER
排序、查看所有记录和进入下一页(寻呼机加载下一页)都很慢。我正在使用IQueryable创建一个Select来加载数据,其中包含有Union的Select语句,连接了所有查询,并且所有的查询都包含了内部联接的包。Select Statement Query with Inner Joins and where clausesUnion Select Statement Query withInn