You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wikis/en/HowToUse.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,8 +343,25 @@ When this parameter is set to `true`, the` offset` parameter in `RowBounds` is u
343
343
adding `/*keep orderby*/` to all subqueries and can set it for a single operation in addition to the global
344
344
configuration.
345
345
346
-
21.`sqlParser`: configure JSqlParser parser, attention is `com.github.pagehelper.JSqlParser` interface, used to support
347
-
such as essentially a need for additional configuration.(**6.1.0 remove this parameter**)
346
+
21.`asyncCount`: Default value is `false`. When set to `true`, count queries will be executed asynchronously,
347
+
which can improve overall pagination query efficiency. Can also be set for individual operations in addition to the global configuration.
348
+
349
+
22.`asyncCountParallelism`: Thread pool size for async count queries, default value is `Runtime.getRuntime().availableProcessors() * 2`.
350
+
Only effective when `asyncCount=true`.
351
+
352
+
23.`countSqlParser`: Configure a custom count SQL parser. Must implement the `com.github.pagehelper.parser.CountSqlParser` interface.
353
+
Set to the fully qualified class name of the implementation. Default is `DefaultCountSqlParser`. Replaces the count-related functionality
354
+
from the removed `sqlParser` parameter.
355
+
356
+
24.`orderBySqlParser`: Configure a custom ORDER BY SQL parser. Must implement the `com.github.pagehelper.parser.OrderBySqlParser` interface.
357
+
Set to the fully qualified class name of the implementation. Default is `DefaultOrderBySqlParser`.
358
+
359
+
25.`sqlServerSqlParser`: Configure a custom SqlServer pagination SQL parser. Must implement the `com.github.pagehelper.parser.SqlServerSqlParser` interface.
360
+
Set to the fully qualified class name of the implementation. Default is `DefaultSqlServerSqlParser`.
361
+
362
+
> ~~`sqlParser`: Configure JSqlParser parser, which is the `com.github.pagehelper.JSqlParser` interface, used to support
363
+
> sqlserver and other scenarios that need additional configuration. **This parameter was removed in 6.1.0**, and its functionality
364
+
> has been split into three separate parameters: `countSqlParser`, `orderBySqlParser`, and `sqlServerSqlParser`.~~
0 commit comments