Skip to content

Commit 72368a9

Browse files
committed
RE: fixed maximum sampling size
1 parent 68bdb31 commit 72368a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reverse_engineering/helpers/postgresHelpers/tableHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const getLimit = (count, recordSamplingSettings) => {
137137
recordSamplingSettings.active === 'absolute'
138138
? recordSamplingSettings.absolute.value
139139
: Math.round((count / 100) * per);
140-
return size;
140+
return Math.min(size, 100000);
141141
};
142142

143143
const prepareTableConstraints = (constraintsResult, attributesWithPositions) => {

0 commit comments

Comments
 (0)