Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve bundles screen performance #304

Open
pierre opened this issue Apr 8, 2022 · 0 comments
Open

Improve bundles screen performance #304

pierre opened this issue Apr 8, 2022 · 0 comments

Comments

@pierre
Copy link
Member

pierre commented Apr 8, 2022

Some Kill Bill deployments have very large catalogs (15GB+ XML). The following snippet can make the subscriptions screen unusable (while Kill Bill returns fast in about 2 minutes, the Rails app essentially hangs):

# TODO This doesn't take into account catalog versions
catalogs = Kaui::Catalog.get_account_catalog_json(@account.account_id, nil, cached_options_for_klient) || []
@catalog = catalogs[-1]

We need to rewrite the controller to avoid having to keep the whole catalog in memory to build the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant