Skip to content

Improve bundles screen performance #304

@pierre

Description

@pierre

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions