Debugging And Api

Quick and Easy Performance Insights

If your Xano backend feels sluggish or you're not sure where time is being lost, Performance Insights gives you a clear, bird's-eye view of what's actually happening under the hood. Here's how to use it to audit and improve your application's performance.

Accessing Performance Insights

To get started, head over to the Library tab inside your Xano instance and click on Performance Insights. From here, you can view performance data across different time ranges — the last hour, the last 24 hours, or the last 30 days — depending on your current plan.

Understanding Individual Function Metrics

At the function level, you can see three key metrics for each function:

  • Average time — how long the function typically takes to run
  • Count — how many times it has been executed
  • Total time — the combined execution time across all runs in your selected period

If you spot a function worth investigating, simply click on it to jump directly into its function stack. You can also filter by specific function types, such as database requests or file storage, to narrow your focus.

Switching to Function Stack View

Instead of looking at individual functions, you can switch to the function stack view to see performance data grouped by entire stacks. This gives you a higher-level picture and makes it easier to spot which workflows are the most resource-intensive. The same three metrics — average time, count, and total time — are available here as well.

Using the Graph and Checkboxes

The chart at the top of the screen updates dynamically based on your selections. You can toggle between average time, count, and total time views, and hover over the graph to explore data for specific functions or stacks. Use the checkboxes to isolate a specific subset of functions or stacks so the chart only reflects the data you care about.

Diagnosing a Slow Function Stack

Let's say you notice a function stack that takes 17 seconds to run — that's a red flag worth investigating. Click into it, and if it's a background task, check the task history to drill down into individual runs. From there, you can see exactly which function is consuming the most time.

For example, if an external API request is the culprit, there may not be much you can do since you're dependent on a third-party service. However, if a query all records function is slow, that's a strong signal to revisit your database table and check for proper indexing.

Next Steps

Xano's documentation includes a range of tips and tricks for addressing common performance issues, so once you've identified a problem, you'll have guidance on how to fix it. Performance Insights makes the discovery process fast — so you can spend less time guessing and more time building.

Sign up for Xano

Join 100,000+ people already building with Xano.
Start today and scale to millions.