# Limit Rows in UI\_Table

**URL:** <https://discourse.nodered.org/t/limit-rows-in-ui-table/44171>\
**Category:** General\
**Created:** [14 April 2021 13:47 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171 "2021-04-14T13:47:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aa0z](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Post date:** [14 April 2021 13:47 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/1 "2021-04-14T13:47:24Z")

</div>

I have a flow that uses ui\_table to display data. It's pulling from a internet source and after a period of time my Chrome tab that displays the table becomes unresponsive. I'm thinking there is a limit on how much "info" I can pass to ui\_table without my browser crashing or giving me fits?

Is there a way to limit the # of rows to display in ui\_table to 50 or 75 rows?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 April 2021 16:42 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/2 "2021-04-14T16:42:02Z")

</div>

can you change your query to filter/limit the number of results from the source ? or you can filter before passing to the table.

---

<div class="post-metadata">

**Author:** ![aa0z](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Post date:** [14 April 2021 17:44 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/3 "2021-04-14T17:44:53Z")

</div>

I am filtering. Still a lot of data, about a row a second or so.

I've looked through the documentation and haven't found anything limiting the # of rows. My last resort would be to read all the data to a database and then read the table from the database every second, remove the old data and put new data in the table. Seems like a lot of work just to limit the # of rows.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 April 2021 18:31 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/4 "2021-04-14T18:31:59Z")

</div>

Can't you use a js array filter function before you transmit to the table?

---

<div class="post-metadata">

**Author:** ![aa0z](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Post date:** [14 April 2021 18:42 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/5 "2021-04-14T18:42:11Z")

</div>

I'm saying I want to see all the data that is being displayed in the table...but I only need to see that data for 10 or so seconds to verify the data visually and then it can be removed from the table.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 June 2021 18:42 UTC](https://discourse.nodered.org/t/limit-rows-in-ui-table/44171/6 "2021-06-13T18:42:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
