Skip to content

Commit

Permalink
PaginatorWG采用协程架构,在RDS环境中测试有30-60%的性能提高(IO时间越长提高越多)(测试)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobycroft committed May 11, 2023
1 parent d3e688b commit 4c97fdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orm_query_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ type IOrmQuery interface {
// 分页, 返回分页需要的基本数据
Paginate(page ...int) (res Data, err error)
Paginator(page ...int) (res Paginate, err error)

//PaginatorWG采用协程架构,在RDS环境中测试有30-60%的性能提高(IO时间越长提高越多)
PaginatorWG(page ...int) (res Paginate, err error)
// 组块结果集
// 如果你需要处理成千上万或者更多条数据库记录,可以考虑使用 chunk 方法,该方法一次获取结果集的一小块,
// 然后传递每一小块数据到闭包函数进行处理,该方法在编写处理大量数据库记录的 Artisan 命令的时候非常有用。
Expand Down

0 comments on commit 4c97fdb

Please sign in to comment.