# PowerShell Universal Support Bug: `Out-UDTableData` Takes ~2 Seconds for Two Rows
## Summary
A `New-UDTable -LoadData` callback takes about **2 seconds** to return a page containing only **two records**. Timing traces isolate nearly all of the delay to the call to `Out-UDTableData`.
## Environment
- PowerShell Universal: version not recorded
- PowerShell: version not recorded
- Deployment: Windows development environment
- App route: `/iisapplicationname/dashboard/jSourceAssistant/Cases`
- Date: 2026-10-23, server-local time
## Observed Result
A live search callback processed 163 cached source rows and returned two matching rows:
| Stage | Time / value |
| --- | ---: |
| Work before `Out-UDTableData` | 7.4 ms |
| Rows passed to formatter | 2 |
| Properties passed | 38 |
| `Out-UDTableData` | 2,025.7 ms |
| Total callback time | 2,033.2 ms |
Sanitized trace from `systemLog20261023.txt`, trace ID `25dcae06`:
```text
[2026-10-23 16:39:45.161] Cases.LoadData.Before.OutUDTableData SearchLength=8 SourceRows=163 MatchingRows=2 ReturnedRows=2 PropertyCount=38 PreOutMs=7.4
[2026-10-23 16:39:47.186] Cases.LoadData.After.OutUDTableData OutUDTableDataMs=2025.7 TotalMs=2033.2
```
The search text is not included in the trace.
## Current Call Pattern
The callback currently pipes the page rows to the formatter:
```powershell
$tablePayload = $pageRows | Out-UDTableData `
-Page $tablePage `
-TotalCount $totalCount `
-Properties $tableProperties
```
At the time of the trace, `$pageRows.Count` and `$totalCount` were both `2`, and `$tableProperties.Count` was `38`.
## Reproduction
1. Open the Cases page in the development environment.
2. Search for a term that returns exactly two records.
3. Measure the `New-UDTable -LoadData` callback around `Out-UDTableData`.
The callback filters a cached row set; it does not query SQL for each search keystroke.
## Expected Result
Returning two page rows should not add a multi-second delay in the table-data formatting call. Please confirm whether this duration is expected and whether `Out-UDTableData` has known performance limits or recommended input patterns for this use.
## Request for Support
Please investigate why `Out-UDTableData` takes approximately 2 seconds for two rows and 38 properties in a `New-UDTable -LoadData` callback. Please advise whether this is a known issue, and what additional diagnostic data or profiling method would help identify the cause.
## Related Observation
Other traces on the same page measured approximately 5.9–16.0 seconds in `Out-UDTableData` when the callback returned 12 rows. This suggests the delay is in or below the formatter call, rather than in the local search/filter operation.
## Additional Details to Add Before Submission
- Exact PSU version/build
- PowerShell version
- Browser and version
- Whether the issue reproduces in a minimal `New-UDTable -LoadData` page with synthetic rows
Recommended Answer
so i just figure out what is going on.... i didnt have a dynamic inside the on row expand and the out-udtabledata was running 160+ rows of powershell scripts. now it is stupid fast, ~40ms
the Out-UDTableData documentation might be helpful to add a blurb there and like if an ai agent looks at the doc it can say, oh you might be slow if you do not do dynamics in your on row expanders
Hello Matthew,
Thank you for the detailed traces.
Two seconds is far more than Out-UDTableData costs on its own in my tests. The function is the same from 2026.2.5 through 2026.3.4. In a LoadData callback on a 2026.3.4 test server (Linux container), two synthetic rows of 38 properties took about 11 ms (12 rows, about 30 ms). Your app may differ, so I suggest the steps below.
It also runs your own code once per row. That is the -Render block of each column listed in -Properties that has one, plus -OnRowStyle and -OnRowExpand if the table sets them. On the same server, one 100 ms -Render brought the call to about 210 ms for two rows and 1.26 seconds for 12.
I found no reported issue and no documented performance limit for it. The help for -Properties says you can pass $EventData.Properties, the list the table sends, and every property you list is read on every row.
1. On a copy of the page, remove -Render from the columns, and -OnRowStyle and -OnRowExpand from New-UDTable if it has them, then time Out-UDTableData again with the same search.
2. If it drops to milliseconds, time each -Render block the same way. They run again on every search, so lookups or formatting that do not need the component can move into your cached rows.
3. If it stays slow, check your row objects next. This line, run in the callback on a search that returns rows, prints their type.
$pageRows[0].GetType().FullName
Please send me the timing after step 1, which of those three blocks the table uses, the type that line prints, how the cache is filled, and your PowerShell Universal and PowerShell versions.
Best regards,
Michel
Michel Audi
so i just figure out what is going on.... i didnt have a dynamic inside the on row expand and the out-udtabledata was running 160+ rows of powershell scripts. now it is stupid fast, ~40ms
the Out-UDTableData documentation might be helpful to add a blurb there and like if an ai agent looks at the doc it can say, oh you might be slow if you do not do dynamics in your on row expanders