Search Results discussion_id




Overview

PON.PON_THREADS is a transactional table within the Oracle E-Business Suite Purchasing (PON) schema that stores the header records of discussion threads. Each row represents a distinct conversation topic initiated within a discussion container defined in PON_DISCUSSIONS. The table functions as the structural parent for individual thread postings, which are held in PON_THREAD_ENTRIES, and it records ownership, subject matter, and language context for every thread.

From a Data Vault modeling perspective, the mined FK structure suggests a satellite-leaning classification. The table carries descriptive attributes (SUBJECT, LANGUAGE_CODE, LAST_UPDATE_DATE) attached to a composite key formed by DISCUSSION_ID and THREAD_NUMBER, which behaves like a business key inherited from its parent discussion. The presence of OWNER_PARTY_ID and LAST_UPDATE_DATE reinforces its role as a descriptive, time-stamped companion to the PON_DISCUSSIONS hub.

Key Information Stored

The primary key PON_THREADS_PK is composite, consisting of DISCUSSION_ID and THREAD_NUMBER. DISCUSSION_ID is a foreign key to PON_DISCUSSIONS, anchoring each thread to its parent discussion, while THREAD_NUMBER is a sequential identifier assigned on insertion based on the highest existing thread number for the given discussion. Together these columns provide the unique identity of each thread.

  • DISCUSSION_ID — Foreign key to PON_DISCUSSIONS; part of the primary key.
  • THREAD_NUMBER — Sequential number within a discussion; part of the primary key and the leading column of the unique index PON_THREADS_N2.
  • SUBJECT — The header or title of the thread, stored as VARCHAR2(2000); indexed non-uniquely by PON_THREADS_N1.
  • LANGUAGE_CODE — Foreign key to FND_LANGUAGES supporting language striping per thread.
  • LAST_UPDATE_DATE — Denormalized timestamp used to simplify polling operations.
  • OWNER_PARTY_ID — Foreign key to HZ_PARTIES identifying the thread owner.

Two unique indexes are documented: PON_THREADS_N2 on (THREAD_NUMBER, DISCUSSION_ID) and PON_THREADS_N1, a non-unique index on SUBJECT. The N2 index serves as a business-key candidate, mirroring the primary key in reversed column order.

Common Use Cases and Queries

Typical usage centers on retrieving thread headers for a given discussion, listing threads by owner, and polling for recent activity via LAST_UPDATE_DATE. A common pattern joins PON_THREADS to PON_DISCUSSIONS on DISCUSSION_ID to resolve discussion context, and to PON_THREAD_ENTRIES on (DISCUSSION_ID, THREAD_NUMBER) to count or retrieve postings.

A representative query retrieving thread headers for a discussion:

SELECT THREAD_NUMBER, DISCUSSION_ID, SUBJECT,
       LANGUAGE_CODE, LAST_UPDATE_DATE, OWNER_PARTY_ID
FROM   PON.PON_THREADS
WHERE  DISCUSSION_ID = :discussion_id
ORDER  BY THREAD_NUMBER;

Reporting use cases include thread volume analysis per discussion, identifying stale or inactive threads by LAST_UPDATE_DATE, and resolving thread ownership through a join to HZ_PARTIES on OWNER_PARTY_ID. The PON_THREADS_N1 index on SUBJECT supports subject-based search and lookup.

Related Objects

PON_THREADS participates in several documented relationships:

  • PON_DISCUSSIONS — Parent discussion; joined on PON_THREADS.DISCUSSION_ID = PON_DISCUSSIONS.DISCUSSION_ID.
  • PON_THREAD_ENTRIES — Child postings referencing this table via DISCUSSION_ID; joined on the composite thread key.
  • HZ_PARTIES — Resolves OWNER_PARTY_ID to the party that owns the thread.
  • FND_LANGUAGES — Resolves LANGUAGE_CODE for language striping.
  • PON_THREADS# — Internal dependent object maintained by the database for this table.

These relationships establish PON_THREADS as a central header entity within the discussion subsystem, bridging discussion containers, individual postings, party ownership, and language configuration.