mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 21:06:00 +00:00
Allow max page size 50000 #1185
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
const nextRows = await loadDataPage(
|
||||
$$props,
|
||||
loadedRows.length,
|
||||
getIntSettingsValue('dataGrid.pageSize', 100, 5, 1000)
|
||||
getIntSettingsValue('dataGrid.pageSize', 100, 5, 50000)
|
||||
);
|
||||
if (loadedTimeRef.get() !== loadStart) {
|
||||
// new load was dispatched
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
}
|
||||
|
||||
function openQueryOnError() {
|
||||
openQuery(display.getPageQueryText(0, getIntSettingsValue('dataGrid.pageSize', 100, 5, 1000)));
|
||||
openQuery(display.getPageQueryText(0, getIntSettingsValue('dataGrid.pageSize', 100, 5, 50000)));
|
||||
}
|
||||
|
||||
const quickExportHandler = fmt => async () => {
|
||||
|
||||
@@ -157,7 +157,7 @@ ORDER BY
|
||||
<div class="heading">Data grid</div>
|
||||
<FormTextField
|
||||
name="dataGrid.pageSize"
|
||||
label="Page size (number of rows for incremental loading, must be between 5 and 1000)"
|
||||
label="Page size (number of rows for incremental loading, must be between 5 and 50000)"
|
||||
defaultValue="100"
|
||||
/>
|
||||
<FormCheckboxField name="dataGrid.showHintColumns" label="Show foreign key hints" defaultValue={true} />
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
async function loadNextRows() {
|
||||
const pageSize = getIntSettingsValue('dataGrid.pageSize', 100, 5, 1000);
|
||||
const pageSize = getIntSettingsValue('dataGrid.pageSize', 100, 5, 50000);
|
||||
const rows = await apiCall('jsldata/get-rows', {
|
||||
jslid,
|
||||
offset: loadedRows.length,
|
||||
|
||||
Reference in New Issue
Block a user