Function Stack Performance
Xano does a lot of work behind the scenes to ensure your API response time is as fast as possible. That said, there are best practices that should be followed when you're building your API endpoints to avoid slowing down your server.
What is "good" performance?
The performance of your API endpoint depends on a number of different variables which include:
The complexity of your function stack and the number of statements that execute
How much data is being processed
How your Database is set up/indexed (if you're querying the Database)
Server location and resources
Examples below are using a Xano paid plan (Dedicated resources) with a local server:
The below response times will change depending on your Xano plan and load on your Xano Instance.
Get 100 Records
1
< 1 second
Filter 100,000 records by one field
1
< 1 second
Bulk Add 10k records
1
< 1 second
Transform 100k records (Change field to uppercase)
3
< 1 second
Bulk Delete (Recursive)
502
< 5 seconds
*< 1 second = under 1 second
**The results are the median response times between Launch, Scale, and Scale-2x.
How to improve your API response times
Optimize Database Performance There are many ways to set up the Database for your application. Unfortunately, there are inefficient ways to set this up that can slow your app down. You'll have to go through a few iterations to find the most efficient way for your use case.
Simplify your Function Stack This may seem obvious, but producing a response in ten (10) functions is slower than doing it in three (3). It's also important to remember that the number of functions in the function stack could be different than the statements that get executed (for example, if you have a loop).
Last updated
Was this helpful?