Retrieve table row count from statistics rather than table scan
See https://wiki.postgresql.org/wiki/Slow_Counting
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<li>Size: <span id="table_total_size"></span></li>
|
||||
<li>Data size: <span id="table_data_size"></span></li>
|
||||
<li>Index size: <span id="table_index_size"></span></li>
|
||||
<li>Rows: <span id="table_rows_count"></span></li>
|
||||
<li>Estimated rows: <span id="table_rows_count"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,4 +182,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user