[jira] [Commented] (DERBY-6303) Add ability to defer enforcement of unique indexes until transaction end.

2024-02-01 Thread Bart van der Bilt (Jira)


[ 
https://issues.apache.org/jira/browse/DERBY-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17813401#comment-17813401
 ] 

Bart van der Bilt commented on DERBY-6303:
--

After fixing the data this works great :). Create schema, add foreign keys and 
import data last. Re-attached the corrected SQL files.

Not sure how to reproduce this.

> Add ability to defer enforcement of unique indexes until transaction end.
> -
>
> Key: DERBY-6303
> URL: https://issues.apache.org/jira/browse/DERBY-6303
> Project: Derby
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 10.11.1.1
>Reporter: Richard N. Hillegas
>Priority: Major
> Attachments: movierentals26.sql, movies_insert_fk7.sql
>
>
> Applications may need to defer the enforcement of unique indexes for the same 
> reasons that they need to defer the enforcement of unique constraints. See 
> DERBY-532.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (DERBY-6303) Add ability to defer enforcement of unique indexes until transaction end.

2024-01-31 Thread Bart van der Bilt (Jira)


[ 
https://issues.apache.org/jira/browse/DERBY-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17812859#comment-17812859
 ] 

Bart van der Bilt commented on DERBY-6303:
--

I added 2 sql files as test case. Also when converting primary keys to unique 
constrains I cannot get this migration to work from IJ. run 
'fxmovierentals6-all.sql'. Works fine without the foreign keys.

> Add ability to defer enforcement of unique indexes until transaction end.
> -
>
> Key: DERBY-6303
> URL: https://issues.apache.org/jira/browse/DERBY-6303
> Project: Derby
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 10.11.1.1
>Reporter: Richard N. Hillegas
>Priority: Major
> Attachments: fxmovierentals6-all.sql, movies_insert_fk7.sql
>
>
> Applications may need to defer the enforcement of unique indexes for the same 
> reasons that they need to defer the enforcement of unique constraints. See 
> DERBY-532.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (DERBY-6303) Add ability to defer enforcement of unique indexes until transaction end.

2014-04-24 Thread Dag H. Wanvik (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13980125#comment-13980125
 ] 

Dag H. Wanvik commented on DERBY-6303:
--

That might have performance implications: deferrable indexes are physically 
non-unique, which gives a slightly slower code path than phsyically unique 
indexes.  Next point: how would be make such indexes deferred (as opposed to 
deferrable)? For constraints, we use the SET CONSTRAINTS statement.


 Add ability to defer enforcement of unique indexes until transaction end.
 -

 Key: DERBY-6303
 URL: https://issues.apache.org/jira/browse/DERBY-6303
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.11.0.0
Reporter: Rick Hillegas

 Applications may need to defer the enforcement of unique indexes for the same 
 reasons that they need to defer the enforcement of unique constraints. See 
 DERBY-532.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (DERBY-6303) Add ability to defer enforcement of unique indexes until transaction end.

2014-04-10 Thread Dag H. Wanvik (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13965733#comment-13965733
 ] 

Dag H. Wanvik commented on DERBY-6303:
--

Hi Rick, do you have any specific syntax in mind for this? Would such indexes 
be declared as deferrable?


 Add ability to defer enforcement of unique indexes until transaction end.
 -

 Key: DERBY-6303
 URL: https://issues.apache.org/jira/browse/DERBY-6303
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.11.0.0
Reporter: Rick Hillegas

 Applications may need to defer the enforcement of unique indexes for the same 
 reasons that they need to defer the enforcement of unique constraints. See 
 DERBY-532.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (DERBY-6303) Add ability to defer enforcement of unique indexes until transaction end.

2014-04-10 Thread Rick Hillegas (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13965747#comment-13965747
 ] 

Rick Hillegas commented on DERBY-6303:
--

Hi Dag,

I haven't worked out any syntax for this. Why not let all unique indexes be 
deferrable? Thanks.

 Add ability to defer enforcement of unique indexes until transaction end.
 -

 Key: DERBY-6303
 URL: https://issues.apache.org/jira/browse/DERBY-6303
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.11.0.0
Reporter: Rick Hillegas

 Applications may need to defer the enforcement of unique indexes for the same 
 reasons that they need to defer the enforcement of unique constraints. See 
 DERBY-532.



--
This message was sent by Atlassian JIRA
(v6.2#6252)