Retrieve table row count from statistics rather than table scan

See https://wiki.postgresql.org/wiki/Slow_Counting
This commit is contained in:
Chris Bandy
2014-11-21 05:25:44 +00:00
parent 597428b6c5
commit 159f589c0c
3 changed files with 123 additions and 118 deletions

View File

@@ -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>