Bill POID Literal Value Used In The Query To Fetch /bill Objects Causing Slow Performance Of Invoicing (Doc ID 2003072.1)

Last updated on DECEMBER 02, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.4.0.0.0 to 7.4.0.0.0 [Release 7.4.0]
Information in this document applies to any platform.

Goal

On : 7.4.0.7.0 version, Invoicing

Bill POID literal value used in the query to fetch /bill objects for Invoicing (Fresh or re-fetch) causing slow performance.

Following SQL query was used by OOTB pin_inv_accts to retrieve the /bill objects to create invoices.

SELECT bill_t.poid_db, bill_t.poid_id0, bill_t.poid_type, bill_t.poid_rev,
  bill_t.created_t, bill_t.mod_t, bill_t.account_obj_db,
  bill_t.account_obj_id0, bill_t.account_obj_type,
  bill_t.account_obj_rev, bill_t.bill_no, bill_t.currency,
  bill_t.current_total, bill_t.end_t, bill_t.due_t, bill_t.parent_db,
  bill_t.parent_id0, bill_t.parent_type, bill_t.parent_rev,
  bill_t.previous_total, bill_t.start_t, bill_t.subords_total,
  bill_t.total_due, bill_t.currency_secondary, bill_t.invoice_obj_db,
  bill_t.invoice_obj_id0, bill_t.invoice_obj_type,
  bill_t.invoice_obj_rev, bill_t.flags, bill_t.billinfo_obj_db,
  bill_t.billinfo_obj_id0, bill_t.billinfo_obj_type,
  bill_t.billinfo_obj_rev, bill_t.ar_hierarchy_size,
  bill_t.ar_billinfo_obj_db, bill_t.ar_billinfo_obj_id0,
  bill_t.ar_billinfo_obj_type, bill_t.ar_billinfo_obj_rev, bill_t.NAME
  FROM bill_t, billinfo_t
  WHERE bill_t.billinfo_obj_id0 = billinfo_t.poid_id0
  AND billinfo_t.pay_type = :1
  AND bill_t.parent_id0 = :2
  AND bill_t.end_t >= :3
  AND bill_t.end_t < :4
  AND bill_t.poid_id0 > 1
  AND (bill_t.invoice_obj_id0 = 0 OR bill_t.invoice_obj_id0 IS NULL)
ORDER BY bill_t.poid_id0 ASC


As per the above query " bill_t.poid_id0 > 1 " the value 1 is used as literal and the same literal is being modified at the time of re-fetch ( Max(POID) value of /bill processed by worker threads ) to fetch the /bill objects which are yet to be processed. So this query is taking longer time which causes invoicing performance issue, how to overcome this performance issue?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms