Skip to content

Commit

Permalink
post按照pid asc,避免插入速度降低
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 9, 2021
1 parent d5ac329 commit 2a8684a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/convert/converter/post.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class PostService extends BaseService {

const usernameLoader = this.userModel.getUsernameLoader()

const postStream = postQuery.clone().stream({highWaterMark: this.configService.get('HighWaterMark')})
const postStream = postQuery.clone().orderBy('pid', 'asc')
.stream({highWaterMark: this.configService.get('HighWaterMark')})

const threadCache = this.forumThreadModel.getPostConvertCache()
const threadCounter = new Map<number, number>()
Expand Down

0 comments on commit 2a8684a

Please sign in to comment.