[Bug]: Applying budget templates takes 30 seconds #1090

Closed
opened 2026-02-28 19:31:39 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @deermo on GitHub (May 12, 2024).

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

I set up my budget with templates for each category (around 50 categories), and applying those worked out fine. Then I imported all my old transactions (3500) to a local account. Since then, applying templates takes 30 seconds without producing any error. The browser console does not show any errors.

Initially, I had encryption turned on. I imported the budget without encryption, but the error persists.

Where are you hosting Actual?

Pikapods

What browsers are you seeing the problem on?

Firefox

Operating System

Mac OSX

Originally created by @deermo on GitHub (May 12, 2024). ### Verified issue does not already exist? - [X] I have searched and found no existing issue - [X] I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file) ### What happened? I set up my budget with templates for each category (around 50 categories), and applying those worked out fine. Then I imported all my old transactions (3500) to a local account. Since then, applying templates takes 30 seconds without producing any error. The browser console does not show any errors. Initially, I had encryption turned on. I imported the budget without encryption, but the error persists. ### Where are you hosting Actual? Pikapods ### What browsers are you seeing the problem on? Firefox ### Operating System Mac OSX
GiteaMirror added the buggoal templates labels 2026-02-28 19:31:39 -06:00
Author
Owner

@youngcw commented on GitHub (May 12, 2024):

What does it look like while you are waiting those 30s? Is it nothing then they apply all at once? Or is it pieces at a time?

If you click the sync button in the top right does it stop spinning quickly, or does it take a long time?

@youngcw commented on GitHub (May 12, 2024): What does it look like while you are waiting those 30s? Is it nothing then they apply all at once? Or is it pieces at a time? If you click the sync button in the top right does it stop spinning quickly, or does it take a long time?
Author
Owner

@deermo commented on GitHub (May 12, 2024):

The interface is completely frozen during this time. When I click sync, the wheel does not spin until the budgets are calculated, an all other actions are „ignored“

@deermo commented on GitHub (May 12, 2024): The interface is completely frozen during this time. When I click sync, the wheel does not spin until the budgets are calculated, an all other actions are „ignored“
Author
Owner

@youngcw commented on GitHub (May 13, 2024):

For the sync button, I was meaning on its own, not during a template apply. Im wondering if your server syncing is really slow for some reason and that is why the templates take so long

@youngcw commented on GitHub (May 13, 2024): For the sync button, I was meaning on its own, not during a template apply. Im wondering if your server syncing is really slow for some reason and that is why the templates take so long
Author
Owner

@deermo commented on GitHub (May 13, 2024):

Everything else syncs nice and very fast, I'd say the usual sync is around 0.3 seconds roughly?

@deermo commented on GitHub (May 13, 2024): Everything else syncs nice and very fast, I'd say the usual sync is around 0.3 seconds roughly?
Author
Owner

@youngcw commented on GitHub (May 13, 2024):

Hmm. I don't know what would cause really slow processing then. Would you be willing to put up a list of the templates you are using? Maybe we can figure out if one of them is causing trouble

@youngcw commented on GitHub (May 13, 2024): Hmm. I don't know what would cause really slow processing then. Would you be willing to put up a list of the templates you are using? Maybe we can figure out if one of them is causing trouble
Author
Owner

@joel-jeremy commented on GitHub (Jun 3, 2024):

I also noticed a bit of a slow down when I tried running some templates recently

@joel-jeremy commented on GitHub (Jun 3, 2024): I also noticed a bit of a slow down when I tried running some templates recently
Author
Owner

@mk-french commented on GitHub (Sep 11, 2024):

Also experienced a bit of a slow-down in applying templates, approximately 10s for me. Occurring on both schedule and simple/static templates. E.g. #template schedule full Mortgage and #template 300.

@mk-french commented on GitHub (Sep 11, 2024): Also experienced a bit of a slow-down in applying templates, approximately 10s for me. Occurring on both schedule and simple/static templates. E.g. `#template schedule full Mortgage` and `#template 300`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1090