Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-3086

data_access_capability_application_xref table missing unique constraint

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Won't Do
    • Icon: Major Major
    • Recycle Bin
    • 2.0.0-RC1
    • None
    • None

      The data_access_capability_application_xref table I believe is missing a unique constraint across data_access_capability_ref and data_access_application_ref. There are duplicate entries.

      Example (on staging db):

      select * from metadata.data_access_capability_application_xref where data_access_capability_ref = '7a8ca769-8009-4a33-a505-0521dcde66c0'

      Compare:

      select count(x.*) from metadata.data_access_capability_application_xref x ---> 41

      with:

      select count(distinct x.*) from metadata.data_access_capability_application_xref x -->33

      This inadvertently doubles/triples the number of rows coming back from a join to the table (depending on how many duplicates there are).

              Unassigned Unassigned
              jcunning Jason Cunning
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: