---
title: "Gateway - How to display the size of dataviews on a gateway?"
description: "Displaying the size of dataviews on a Geneos gateway involves using the Gateway-SQL plugin to count table cells in each dataview. The sampler must be run manually due to its 0 sampling interval and potential performance impact."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360020096938-geneos-gateway-how-to-display-the-size-of-dataviews-on-a-gateway/index.html"
---
This information can be obtained from the gateway by using the Gateway-SQL plugin. The query works by counting the total number of table cells (excluding the headlines and row name column) in each dataveiw. An example of the dataview is listed below. The [xml](/faq/downloads/geneos/Gwy-sql-TableCellsPerDataview.xml.txt) of the sampler can be downloaded for your configuration.

Depending on the estate of your gateway, the sampler may be expensive in terms of performance and may take some time to run.

Due to the above reason, the sampler is configured on purpose NOT to sample on startup and does not run on its own. It has a 0 sampling interval. As a result, you will see `0 rows, Manual sampling` in the dataview when the sampler is initialized.

To run the sampler manually, click on the **Sample now** or refresh icon in the dataview.

![Sample now button](https://docscdn.itrsgroup.com/faq/images/geneos/button-for-manual-sampling.png)

![Table cells per dataview](https://docscdn.itrsgroup.com/faq/images/geneos/table-cells-per-dataview.png)

For more information, see the [Gateway-SQL](https://docs.itrsgroup.com/docs/geneos/current/processing/configuration/geneos_gateway_plugins_tr/#gateway-sql) section on the Gateway Plug-Ins documentation. The SQL statements are based on [SQLite](https://www.sqlite.org/lang.html).


