mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 03:56:51 +00:00
fix: Postgres rows count of large tables
query optimized to handle large tables row count re #283 Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
This commit is contained in:
@@ -214,32 +214,35 @@
|
||||
</template>
|
||||
|
||||
</div>
|
||||
<v-pagination
|
||||
v-if="data && count !== Infinity"
|
||||
style="max-width: 100%"
|
||||
v-model="page"
|
||||
:length="Math.ceil(count / size)"
|
||||
:total-visible="8"
|
||||
@input="loadTableData"
|
||||
color="primary lighten-2"
|
||||
></v-pagination>
|
||||
<div class="mx-auto d-flex align-center mt-n1 " style="max-width:250px">
|
||||
<span class="caption" style="white-space: nowrap"> Change page:</span>
|
||||
<v-text-field
|
||||
class="ml-1 caption"
|
||||
:full-width="false"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
<template v-if="data">
|
||||
<v-pagination
|
||||
v-if="count !== Infinity"
|
||||
style="max-width: 100%"
|
||||
v-model="page"
|
||||
@keydown.enter="loadTableData"
|
||||
type="number"
|
||||
>
|
||||
<template #append>
|
||||
<x-icon tooltip="Change page" small icon.class="mt-1" @click="loadTableData">mdi-keyboard-return</x-icon>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</div>
|
||||
:length="Math.ceil(count / size)"
|
||||
:total-visible="8"
|
||||
@input="loadTableData"
|
||||
color="primary lighten-2"
|
||||
></v-pagination>
|
||||
<div v-else class="mx-auto d-flex align-center mt-n1 " style="max-width:250px">
|
||||
<span class="caption" style="white-space: nowrap"> Change page:</span>
|
||||
<v-text-field
|
||||
class="ml-1 caption"
|
||||
:full-width="false"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
v-model="page"
|
||||
@keydown.enter="loadTableData"
|
||||
type="number"
|
||||
>
|
||||
<template #append>
|
||||
<x-icon tooltip="Change page" small icon.class="mt-1" @click="loadTableData">mdi-keyboard-return
|
||||
</x-icon>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</div>
|
||||
</template>
|
||||
<!-- <div v-else class="d-flex justify-center py-4">-->
|
||||
<!-- <v-alert type="info" dense class="ma-1 flex-shrink-1">Table is empty</v-alert>-->
|
||||
<!-- </div>-->
|
||||
|
||||
Reference in New Issue
Block a user