You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that there should be ActivePackage for every package available to user with its user_id. Otherwise writing down all packages available to user would take a lot of comparison. ActivePackages only holds its original package_id, so it doesn't take so much memory, and iterate over it for some user_id will be much simplier.
The text was updated successfully, but these errors were encountered:
load all active packages and store their id into HashMap. Then you can iterate over all packages and in constant time decide if such active package is needed or not.
I think that there should be ActivePackage for every package available to user with its user_id. Otherwise writing down all packages available to user would take a lot of comparison. ActivePackages only holds its original package_id, so it doesn't take so much memory, and iterate over it for some user_id will be much simplier.
The text was updated successfully, but these errors were encountered: