Skip to content

Commit

Permalink
fix: 5000
Browse files Browse the repository at this point in the history
Signed-off-by: Rustin170506 <[email protected]>
  • Loading branch information
Rustin170506 committed Nov 23, 2024
1 parent 500ddb0 commit 4172aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/cache/statscache.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (s *StatsCacheImpl) Update(ctx context.Context, is infoschema.InfoSchema) e
if err := util.CallWithSCtx(s.statsHandle.SPool(), func(sctx sessionctx.Context) error {
rows, _, err = util.ExecRows(
sctx,
"SELECT version, table_id, modify_count, count, snapshot from mysql.stats_meta where version > %? order by version limit 10000",
"SELECT version, table_id, modify_count, count, snapshot from mysql.stats_meta where version > %? order by version limit 5000",
lastVersion,
)
return err
Expand Down

0 comments on commit 4172aa3

Please sign in to comment.