Skip to content

[Acc] Reduce number of wallets created without reason #5570

@hschu12

Description

@hschu12

We are currently creating wallets for all product categories in the system for all workspace. This happens due to calls such as walletbrowse triggers a wallet look up for each potential category. The look up contains a read or insert operation to the internal DB. However since the browse call does not care about the categories it ends up have all product categories as potential categories and therefore creates a wallet for each category.

I would suggest we make a alternative function for these calls and diferentiate between is this part of the creation of a resource (the wallet should be created) or is this an actually retieve and should only return what the workspace actually has and not create any wallets in that process.

It is specifically the lInternalWalletByOwner function that is responsible for this. We should back trace all usage of this function and split the need into
lInternalWalletByOwnerRead and lInternalWalletByOwnerReadOrInsert.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions