Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-685

Split instance update and Tally into two transactions

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      In order to enable future work to limit memory usage of the nightly tally operation.

      In InventoryAccountUsageCollector.collect, delegate to two methods:

      • void updateInstances(Collection<String> products, String account, String orgId)
      • AccountUsageCalculation tally(Collection<String> products, String account, String orgId)

      each method should use its own transaction.

      updateInstances should only update the hosts table and related tables.

      tally should fetch the hosts and then produce an AccountUsageCalculation

      (right now these are interleaved).

            awood1@redhat.com Alex Wood
            khowell@redhat.com Kevin Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: