Anvil is really slow

I have a simple dashboard that just picks values from a db on AWS and plot them, no analysis done or anything… still it takes >30 seconds to finally see results… is this a normal behavior in Anvil? it looks like a product with these performances is ok for demos, but not for production… I am on the individual plan… are things supposed to be better on more pricey plans?

Hi @simone,

Thanks for posting this.

Performance should be good on all plans, including individual. Could you share a clone link to an app that demonstrates the problem? (Feel free to PM the clone link to me if you don’t want to share it on an open forum.)

You may also want to search the forums for ways to improve your apps performance. Here are some options you may find useful:
Suggestions to optimize performance

If you are making way too many api/database calls (I mean seriously un optimized code) at the form load time you will notice a significant delay. Are you sure the delay is not from AWS’s side (misconfigured server or something). Anvil’s performance is totally fine for production app. I was working with mongodb and similar thing happened. Little optimizations fixed my problem.

1 Like

In fact, Anvil is extremely fast if implemented correctly for each case. It is quite hard to advised without the code. Please post your code.

1 Like

how fast? in your case for instance, how long does it takes for your app to display data?

It really depends. Instantly if I load all data to client and display it later. 5s -10s if there are a lot of data.

If I am lazy and it’s not important, I leave it at 20s.

If you are waiting more than 10s, there is always a method to reduce loading time.

Posting your code is the best way to solve problem, sensitive information can be removed

2 Likes

For the sake of transparency, I have replied to @simone in a private message suggesting some improvements. Mostly involving the number of calls from the client to the server.

For anyone who comes to this thread at a later date, this post by @stefano.menci is a good place to start when optimising an app:

As @Tony.Nguyen says, the best way to get help with a problem is to post your problem with some source code.

3 Likes