mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Performance optimization
This commit is contained in:
parent
a0c36605a4
commit
5a2e13c781
@ -1285,7 +1285,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (cancellationTokenSource?.IsCancellationRequested == true) return;
|
if (cancellationTokenSource?.IsCancellationRequested == true) return;
|
||||||
var queryable = this.Clone();
|
var queryable = this.Clone();
|
||||||
var page = queryable.ToPageList(i, singleMaxReads, ref totalNumber, ref totalPage);
|
var page =
|
||||||
|
totalPage==1?
|
||||||
|
queryable.ToPageList(i, singleMaxReads, ref totalNumber, ref totalPage):
|
||||||
|
queryable.ToPageList(i, singleMaxReads);
|
||||||
foreach (var item in page)
|
foreach (var item in page)
|
||||||
{
|
{
|
||||||
if (cancellationTokenSource?.IsCancellationRequested == true) return;
|
if (cancellationTokenSource?.IsCancellationRequested == true) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user