Lise, March 15, 2001 - 4:33 pm UTC
ANONYMOUS, March 16, 2001 - 4:36 pm UTC
Helena Markova, March 28, 2001 - 3:06 am UTC
Nuno Souto, May 17, 2001 - 11:20 pm UTC
vijaya, August 23, 2001 - 4:05 pm UTC
Does the no unique index ban apply to the primary key?
A reader, September 21, 2005 - 8:28 pm UTC
Does the no unique index ban apply to the primary key on materialized views that are updated based on primary key, i.e. with the following refresh clause:
REFRESH FAST
ON DEMAND
START WITH SYSDATE
NEXT SYSDATE + 1
WITH PRIMARY KEY
September 22, 2005 - 1:20 pm UTC
you should use a deferrable unique constraint, as the refresh process will "defer" the validation of uniqueness until after the refresh is done - since the refresh is a row by row operation (a process, not a single sql statement), you cannot be sure any sort of integrity constraint like that could not be violated for a brief moment of time during the refresh.